mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
fix(mail(js)): handle new message from template in popup window
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user