Improve Preferences module and Mail account editor

This commit is contained in:
Francis Lachapelle
2016-10-21 10:49:09 -04:00
parent 6d695e813b
commit 24e4c60baa
4 changed files with 52 additions and 19 deletions
@@ -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;