mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 01:11:22 +00:00
fix(preferences(js)): automatically expand newly created mail account
This commit is contained in:
@@ -135,7 +135,13 @@
|
||||
mailCustomFromEnabled: $window.mailCustomFromEnabled
|
||||
}
|
||||
}).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());
|
||||
|
||||
form.$setDirty();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user