mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Resolve #1689
This commit is contained in:
parent
3fb700f163
commit
aa52d2e8f8
10 changed files with 39 additions and 30 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue