Skip to content

Commit

Permalink
fix(mail(js)): handle new message from template in popup window
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Feb 14, 2022
1 parent 21dc73d commit 6c42086
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Mailer/Mailer.popup.js
Expand Up @@ -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/>',
Expand Down
8 changes: 8 additions & 0 deletions UI/WebServerResources/js/Mailer/MessageEditorController.js
Expand Up @@ -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();
Expand Down

0 comments on commit 6c42086

Please sign in to comment.