mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
use trilium version number in asset paths to avoid caching issues
This commit is contained in:
@@ -11,19 +11,21 @@ const CREDENTIALS = 'shareCredentials';
|
||||
const isCredentials = attr => attr.type === 'label' && attr.name === CREDENTIALS;
|
||||
|
||||
class Note extends AbstractEntity {
|
||||
constructor([noteId, title, type, mime, utcDateModified]) {
|
||||
constructor([noteId, title, type, mime, utcDateModified, isProtected]) {
|
||||
super();
|
||||
|
||||
/** @param {string} */
|
||||
this.noteId = noteId;
|
||||
/** @param {string} */
|
||||
this.title = title;
|
||||
this.title = isProtected ? "[protected]" : title;
|
||||
/** @param {string} */
|
||||
this.type = type;
|
||||
/** @param {string} */
|
||||
this.mime = mime;
|
||||
/** @param {string} */
|
||||
this.utcDateModified = utcDateModified; // used for caching of images
|
||||
/** @param {boolean} */
|
||||
this.isProtected = isProtected;
|
||||
|
||||
/** @param {Branch[]} */
|
||||
this.parentBranches = [];
|
||||
@@ -65,7 +67,7 @@ class Note extends AbstractEntity {
|
||||
return this.getChildBranches()
|
||||
.filter(branch => !branch.isHidden)
|
||||
.map(branch => branch.getNote())
|
||||
.filter(childNote => !childNote.hasLabel('shareHiddenFromTree') && !childNote.isProtected);
|
||||
.filter(childNote => !childNote.hasLabel('shareHiddenFromTree'));
|
||||
}
|
||||
|
||||
hasChildren() {
|
||||
|
||||
Reference in New Issue
Block a user