mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-13 07:25:26 +00:00
Add cancel button to Webmail editor
This commit is contained in:
@@ -632,7 +632,7 @@
|
||||
return function postLink(scope, iElement, iAttr, controller) {
|
||||
$compile(mdInputEl)(scope);
|
||||
$compile(selectEl)(scope);
|
||||
$compile(tElement.find('md-button'))(scope);
|
||||
$compile(tElement.find('md-button'))(scope.$parent);
|
||||
}
|
||||
}
|
||||
}])
|
||||
|
||||
@@ -277,6 +277,12 @@
|
||||
$scope.message = stateMessage;
|
||||
}
|
||||
$scope.identities = _.pluck(_.flatten(_.pluck(stateAccounts, 'identities')), 'full');
|
||||
$scope.cancel = function() {
|
||||
if ($scope.mailbox)
|
||||
$state.go('mail.account.mailbox', { accountId: $scope.mailbox.$account.id, mailboxId: $scope.mailbox.id });
|
||||
else
|
||||
$state.go('mail');
|
||||
};
|
||||
$scope.send = function(message) {
|
||||
message.$send().then(function(data) {
|
||||
$rootScope.message = null;
|
||||
|
||||
Reference in New Issue
Block a user