when saving Saved Search or SQL console, move it to their home (i.e. remove from hidden subtree)

This commit is contained in:
zadam
2021-10-24 14:53:45 +02:00
parent 33aa72eb97
commit 3413074235
17 changed files with 94 additions and 59 deletions

View File

@@ -139,7 +139,7 @@ export default class TabManager extends Component {
this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event
}
/** @return {NoteContext[]} */
/** @returns {NoteContext[]} */
getNoteContexts() {
return this.noteContexts;
}
@@ -175,20 +175,20 @@ export default class TabManager extends Component {
return activeContext ? activeContext.notePath : null;
}
/** @return {NoteShort} */
/** @returns {NoteShort} */
getActiveContextNote() {
const activeContext = this.getActiveContext();
return activeContext ? activeContext.note : null;
}
/** @return {string|null} */
/** @returns {string|null} */
getActiveContextNoteId() {
const activeNote = this.getActiveContextNote();
return activeNote ? activeNote.noteId : null;
}
/** @return {string|null} */
/** @returns {string|null} */
getActiveContextNoteType() {
const activeNote = this.getActiveContextNote();