mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
many small fixes from Intellij analysis
This commit is contained in:
@@ -47,7 +47,7 @@ export default class MainTreeExecutors extends Component {
|
||||
}
|
||||
|
||||
const parentNotePath = treeService.getNotePath(node.getParent());
|
||||
const isProtected = await treeService.getParentProtectedStatus(node);
|
||||
const isProtected = treeService.getParentProtectedStatus(node);
|
||||
|
||||
if (node.data.noteId === 'root' || node.data.noteId === hoistedNoteService.getHoistedNoteId()) {
|
||||
return;
|
||||
|
||||
@@ -152,7 +152,7 @@ class NoteContext extends Component {
|
||||
return resolvedNotePath;
|
||||
}
|
||||
|
||||
/** @property {FNote} */
|
||||
/** @returns {FNote} */
|
||||
get note() {
|
||||
if (!this.noteId || !(this.noteId in froca.notes)) {
|
||||
return null;
|
||||
@@ -161,7 +161,7 @@ class NoteContext extends Component {
|
||||
return froca.notes[this.noteId];
|
||||
}
|
||||
|
||||
/** @property {string[]} */
|
||||
/** @returns {string[]} */
|
||||
get notePathArray() {
|
||||
return this.notePath ? this.notePath.split('/') : [];
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ export default class TabManager extends Component {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
/** @property {NoteContext[]} */
|
||||
this.children = [];
|
||||
this.mutex = new Mutex();
|
||||
|
||||
this.activeNtxId = null;
|
||||
@@ -38,7 +40,7 @@ export default class TabManager extends Component {
|
||||
appContext.addBeforeUnloadListener(this);
|
||||
}
|
||||
|
||||
/** @type {NoteContext[]} */
|
||||
/** @returns {NoteContext[]} */
|
||||
get noteContexts() {
|
||||
return this.children;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user