presentations

This commit is contained in:
Mo Bitar
2016-12-16 00:44:49 -06:00
parent 36c74ed14d
commit 15a227daa2
11 changed files with 132 additions and 249 deletions

View File

@@ -64,8 +64,13 @@ class Item {
// should be overriden to manage local properties
}
referencesAffectedBySharingChange() {
// should be overriden to determine which references should be decrypted/encrypted
return null;
}
isPublic() {
return this.presentation;
return this.presentation_name;
}
isEncrypted() {
@@ -77,7 +82,7 @@ class Item {
}
presentationURL() {
return this.presentation.url;
return this.presentation_url;
}
}

View File

@@ -23,6 +23,10 @@ class Note extends Item {
this.tags = this.referencesMatchingContentType("Tag");
}
referencesAffectedBySharingChange() {
return super.referencesAffectedBySharingChange();
}
get hasOnePublicTag() {
var hasPublicTag = false;
this.tags.forEach(function(tag){

View File

@@ -20,4 +20,8 @@ class Tag extends Item {
super.updateReferencesLocalMapping();
this.notes = this.referencesMatchingContentType("Note");
}
referencesAffectedBySharingChange() {
return this.referencesMatchingContentType("Note");
}
}