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

This commit is contained in:
Francis Lachapelle committed 2022-02-14 12:56:08 -05:00
1 parent 21dc73df56
commit 6c420861d4
2 files changed
+9 -1

No files matched your search

@@ -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();