mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Improve Preferences module and Mail account editor
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
function AccountDialogController($mdDialog, defaults, account, accountId, mailCustomFromEnabled) {
|
||||
var vm = this;
|
||||
|
||||
vm.defaultPort = 143;
|
||||
vm.defaults = defaults;
|
||||
vm.account = account;
|
||||
vm.accountId = accountId;
|
||||
@@ -18,6 +19,11 @@
|
||||
vm.cancel = cancel;
|
||||
vm.save = save;
|
||||
|
||||
if (!vm.account.encryption)
|
||||
vm.account.encryption = "none";
|
||||
else if (vm.account.encryption == "ssl")
|
||||
vm.defaultPort = 993;
|
||||
|
||||
function customFromIsReadonly() {
|
||||
if (accountId > 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user