Preparations for #1689

This commit is contained in:
the-djmaze 2024-08-06 12:19:17 +02:00
parent d2f3aa1c10
commit 166b790a3e
4 changed files with 18 additions and 11 deletions

View file

@ -1,6 +1,9 @@
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
@ -47,4 +50,8 @@ export class IdentityModel extends AbstractModel {
label = this.label();
return (name ? `${name} ` : '') + `<${email}>` + (label ? ` (${label})` : '');
}
edit() {
showScreenPopup(IdentityPopupView, [this]);
}
}