mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-06 23:43:19 +00:00
Now enforce SOGoMailCustomFromEnabled
This commit is contained in:
committed by
Francis Lachapelle
parent
bb1977fa93
commit
10a017503e
@@ -114,7 +114,8 @@
|
||||
templateUrl: 'editAccount?account=' + index,
|
||||
targetEvent: null,
|
||||
locals: { account: account,
|
||||
accountId: index}
|
||||
accountId: index,
|
||||
mailCustomFromEnabled: window.mailCustomFromEnabled}
|
||||
}).then(function() {
|
||||
$scope.preferences.defaults.AuxiliaryMailAccounts[index] = account;
|
||||
});
|
||||
@@ -245,9 +246,15 @@
|
||||
};
|
||||
}
|
||||
|
||||
function AccountDialogCtrl($scope, $mdDialog, account, accountId) {
|
||||
function AccountDialogCtrl($scope, $mdDialog, account, accountId, mailCustomFromEnabled) {
|
||||
$scope.account = account;
|
||||
$scope.accountId = accountId;
|
||||
$scope.customFromIsReadonly = function() {
|
||||
if (accountId > 0)
|
||||
return false;
|
||||
|
||||
return !mailCustomFromEnabled;
|
||||
};
|
||||
$scope.cancel = function() {
|
||||
$mdDialog.cancel();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user