import/export

This commit is contained in:
Mo Bitar
2016-12-16 12:39:32 -06:00
parent 15a227daa2
commit c8d0159223
13 changed files with 160 additions and 215 deletions

View File

@@ -60,6 +60,10 @@ class Item {
});
}
mergeMetadataFromItem(item) {
_.merge(this, _.omit(item, ["content"]));
}
updateReferencesLocalMapping() {
// should be overriden to manage local properties
}

View File

@@ -7,8 +7,8 @@ class Tag extends Item {
this.notes = [];
}
if(!this.content.name) {
this.content.name = "";
if(!this.content.title) {
this.content.title = "";
}
}