mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Improved new AddressBook system
This commit is contained in:
parent
497193750b
commit
c9ad0ef170
53 changed files with 589 additions and 459 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue