Improved new AddressBook system

This commit is contained in:
the-djmaze 2022-09-06 14:26:07 +02:00
parent 497193750b
commit c9ad0ef170
53 changed files with 589 additions and 459 deletions

View file

@ -107,7 +107,7 @@ export class ContactsPopupView extends AbstractViewPopup {
}
newContact() {
this.populateViewContact(null);
this.populateViewContact();
this.selectorContact(null);
}
@ -252,11 +252,7 @@ export class ContactsPopupView extends AbstractViewPopup {
* @param {?ContactModel} contact
*/
populateViewContact(contact) {
if (!contact) {
contact = new ContactModel;
}
this.contact(contact);
this.contact(contact || new ContactModel);
this.hasChanges(false);
}