mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 15:27:12 +00:00
fix(preferences(js)): prohibit deleting the last editable mail identity
This commit is contained in:
1 parent
5452cd7396
commit
9337915890
1 file changed
+2
-2
@@ -53,7 +53,7 @@
|
||||
});
|
||||
|
||||
this.hasIdentities = function () {
|
||||
return _.filter(this.account.identities, vm.isEditableIdentity).length > 0;
|
||||
return _.filter(this.account.identities, this.isEditableIdentity).length > 0;
|
||||
};
|
||||
|
||||
this.isEditableIdentity = function (identity) {
|
||||
@@ -84,7 +84,7 @@
|
||||
};
|
||||
|
||||
this.canRemoveIdentity = function (index) {
|
||||
return (index == this.selectedIdentity) && (this.account.identities.length > 1);
|
||||
return (index == this.selectedIdentity) && this.hasIdentities();
|
||||
};
|
||||
|
||||
this.removeIdentity = function (index) {
|
||||
|
||||
Reference in new issue
Block a user