This commit is contained in:
Mo Bitar
2017-01-08 21:59:09 -06:00
parent ca3eff7f15
commit 5e1d045847
7 changed files with 293 additions and 156 deletions

View File

@@ -45,6 +45,11 @@ class Item {
}
}
alternateUUID() {
this.uuid = Neeto.crypto.generateUUID();
console.log("Generating new UUID", this.uuid);
}
setDirty(dirty) {
this.dirty = dirty;
@@ -101,6 +106,11 @@ class Item {
_.merge(this, _.omit(item, ["content"]));
}
allReferencedObjects() {
// must override
return null;
}
referencesAffectedBySharingChange() {
// should be overriden to determine which references should be decrypted/encrypted
return null;

View File

@@ -61,6 +61,10 @@ class Note extends Item {
return filtered;
}
allReferencedObjects() {
return this.tags;
}
referencesAffectedBySharingChange() {
return super.referencesAffectedBySharingChange();
}

View File

@@ -59,6 +59,10 @@ class Tag extends Item {
return "Tag";
}
allReferencedObjects() {
return this.notes;
}
referencesAffectedBySharingChange() {
return this.notes;
}