mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
ContactProperty and FilterCondition use reviveFromJson
This commit is contained in:
parent
9844c1882c
commit
2470f1add6
9 changed files with 78 additions and 75 deletions
|
|
@ -33,6 +33,17 @@ class ContactPropertyModel extends AbstractModel {
|
|||
|
||||
this.regDisposables([this.placeholderValue, this.largeValue]);
|
||||
}
|
||||
|
||||
static reviveFromJson(json) {
|
||||
const property = super.reviveFromJson(json);
|
||||
if (property) {
|
||||
property.type(pInt(property.type));
|
||||
property.typeStr(pInt(property.typeStr));
|
||||
property.value(pString(json.value));
|
||||
return property;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export { ContactPropertyModel, ContactPropertyModel as default };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue