mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-20 02:28:11 +00:00
fix(addressbook(web)): update card on save when certificate is removed
This commit is contained in:
1 parent
547d26af19
commit
c7ee4d8c19
5 files changed
+32
-6
No files matched your search
@@ -575,12 +575,17 @@
|
||||
* @desc Remove any S/MIME certificate associated with the account.
|
||||
* @returns a promise of the HTTP operation
|
||||
*/
|
||||
Card.prototype.$removeCertificate = function() {
|
||||
Card.prototype.$removeCertificate = function(immediate) {
|
||||
var _this = this;
|
||||
|
||||
return Card.$$resource.fetch(this.$path(), 'removeCertificate').then(function() {
|
||||
_this.hasCertificate = false;
|
||||
});
|
||||
if (immediate) {
|
||||
return Card.$$resource.fetch(this.$path(), 'removeCertificate').then(function() {
|
||||
_this.hasCertificate = false;
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.hasCertificate = false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user