mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-29 13:55:42 +00:00
Webmail: Add forward button to messages
This commit is contained in:
1 parent
225c998a97
commit
c514cb64bc
3 files changed
+58
-9
No files matched your search
@@ -124,8 +124,8 @@
|
||||
}]
|
||||
}
|
||||
})
|
||||
.state('mail.account.mailbox.message.reply', {
|
||||
url: '/reply',
|
||||
.state('mail.account.mailbox.message.action', {
|
||||
url: '/{actionName:(?:reply|replyall|forward)}',
|
||||
views: {
|
||||
'mailbox@mail': {
|
||||
templateUrl: 'editorTemplate', // UI/Templates/MailerUI/UIxMailEditor.wox
|
||||
@@ -253,11 +253,21 @@
|
||||
}])
|
||||
|
||||
.controller('MessageEditorCtrl', ['$scope', '$rootScope', '$stateParams', '$state', '$q', 'FileUploader', 'stateAccounts', 'stateMessage', '$timeout', '$modal', 'sgFocus', 'sgDialog', 'sgAccount', 'sgMailbox', 'sgAddressBook', function($scope, $rootScope, $stateParams, $state, $q, FileUploader, stateAccounts, stateMessage, $timeout, $modal, focus, Dialog, Account, Mailbox, AddressBook) {
|
||||
if ($state.current.url == '/reply') {
|
||||
if ($stateParams.actionName == 'reply') {
|
||||
stateMessage.$reply().then(function(msgObject) {
|
||||
$scope.message = msgObject;
|
||||
});
|
||||
}
|
||||
else if ($stateParams.actionName == 'replyall') {
|
||||
stateMessage.$replyAll().then(function(msgObject) {
|
||||
$scope.message = msgObject;
|
||||
});
|
||||
}
|
||||
else if ($stateParams.actionName == 'forward') {
|
||||
stateMessage.$forward().then(function(msgObject) {
|
||||
$scope.message = msgObject;
|
||||
});
|
||||
}
|
||||
else if (angular.isDefined(stateMessage)) {
|
||||
$scope.message = stateMessage;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user