Contact add Note and improved changes check

This commit is contained in:
the-djmaze 2022-09-08 09:37:27 +02:00
parent f451af2188
commit 9dcdd7e41c
40 changed files with 61 additions and 125 deletions

View file

@ -250,7 +250,7 @@ export class ContactModel extends AbstractModel {
hasChanges()
{
return this.toJSON().jCard != JSON.stringify(this.jCard);
return this.email().filter(v => v.length).length && this.toJSON().jCard != JSON.stringify(this.jCard);
}
toJSON()