fix(mail(js)): handle new message from template in popup window

This commit is contained in:
Francis Lachapelle
2022-02-14 12:56:08 -05:00
parent 21dc73df56
commit 6c420861d4
2 changed files with 9 additions and 1 deletions
@@ -81,7 +81,7 @@
}
})
.state('mail.account.mailbox.message.action', {
url: '/{actionName:(?:reply|replyall|forward)}',
url: '/{actionName:(?:compose|reply|replyall|forward)}',
views: {
'message@': {
template: '<ui-view/>',
@@ -83,6 +83,14 @@
_addAttachments();
});
}
else if ($stateParams.actionName == 'compose') {
stateMessage.$compose().then(function(msgObject) {
vm.message = msgObject;
vm.fromIdentity = msgObject.editable.from;
_updateFileUploader();
_addAttachments();
});
}
else if (angular.isDefined(stateMessage)) {
this.message = stateMessage;
_updateFileUploader();