fix(preferences(js)): automatically expand newly created mail account
parent
443a41b770
commit
f1ff8bfe1c
|
@ -135,7 +135,13 @@
|
||||||
mailCustomFromEnabled: $window.mailCustomFromEnabled
|
mailCustomFromEnabled: $window.mailCustomFromEnabled
|
||||||
}
|
}
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
|
// Automatically expand the new mail account
|
||||||
|
if (!angular.isArray(vm.preferences.settings.Mail.ExpandedFolders)) {
|
||||||
|
vm.preferences.settings.Mail.ExpandedFolders = ['/0'];
|
||||||
|
}
|
||||||
|
vm.preferences.settings.Mail.ExpandedFolders.push('/' + index);
|
||||||
vm.preferences.defaults.AuxiliaryMailAccounts.push(account.$omit());
|
vm.preferences.defaults.AuxiliaryMailAccounts.push(account.$omit());
|
||||||
|
|
||||||
form.$setDirty();
|
form.$setDirty();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue