mirror of
https://github.com/zadam/trilium.git
synced 2024-12-28 19:04:02 +08:00
FIXME comment on virtual branches
This commit is contained in:
parent
e3b2bbdca5
commit
a9c0daa51a
3 changed files with 448 additions and 432 deletions
872
package-lock.json
generated
872
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -57,7 +57,7 @@
|
|||
"ini": "3.0.1",
|
||||
"is-animated": "2.0.2",
|
||||
"is-svg": "4.3.2",
|
||||
"jimp": "0.16.1",
|
||||
"jimp": "0.16.2",
|
||||
"joplin-turndown-plugin-gfm": "1.0.12",
|
||||
"jsdom": "20.0.0",
|
||||
"mime-types": "2.1.35",
|
||||
|
@ -72,7 +72,7 @@
|
|||
"rimraf": "3.0.2",
|
||||
"safe-compare": "1.1.4",
|
||||
"sanitize-filename": "1.6.3",
|
||||
"sanitize-html": "2.7.1",
|
||||
"sanitize-html": "2.7.2",
|
||||
"sax": "1.2.4",
|
||||
"semver": "7.3.7",
|
||||
"serve-favicon": "2.5.0",
|
||||
|
@ -82,7 +82,7 @@
|
|||
"tmp": "0.2.1",
|
||||
"turndown": "7.1.1",
|
||||
"unescape": "1.0.1",
|
||||
"ws": "8.8.1",
|
||||
"ws": "8.9.0",
|
||||
"yauzl": "2.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -698,7 +698,7 @@ class Note extends AbstractEntity {
|
|||
// this is done so that non-search & non-archived paths are always explored as first when looking for note path
|
||||
sortParents() {
|
||||
this.parentBranches.sort((a, b) =>
|
||||
a.branchId.startsWith('virt-')
|
||||
a.branchId.startsWith('virt-') // FIXME: search virtual notes appear only in froca so this is probably not necessary
|
||||
|| a.parentNote?.hasInheritableOwnedArchivedLabel() ? 1 : -1);
|
||||
|
||||
this.parents = this.parentBranches
|
||||
|
|
Loading…
Reference in a new issue