This commit is contained in:
the-djmaze 2024-08-06 17:50:43 +02:00
parent 3fb700f163
commit aa52d2e8f8
10 changed files with 39 additions and 30 deletions

View file

@ -1,9 +1,6 @@
import { AbstractModel } from 'Knoin/AbstractModel';
import { addObservablesTo, addComputablesTo } from 'External/ko';
import { showScreenPopup } from 'Knoin/Knoin';
import { IdentityPopupView } from 'View/Popup/Identity';
export class IdentityModel extends AbstractModel {
/**
* @param {string} id
@ -31,7 +28,9 @@ export class IdentityModel extends AbstractModel {
smimeKey: '',
smimeCertificate: '',
askDelete: false
askDelete: false,
exists: false
});
addComputablesTo(this, {
@ -50,8 +49,4 @@ export class IdentityModel extends AbstractModel {
label = this.label();
return (name ? `${name} ` : '') + `<${email}>` + (label ? ` (${label})` : '');
}
edit() {
showScreenPopup(IdentityPopupView, [this]);
}
}