diff --git a/src/public/app/components/root_command_executor.js b/src/public/app/components/root_command_executor.js index 31dc561a6..d60b080c1 100644 --- a/src/public/app/components/root_command_executor.js +++ b/src/public/app/components/root_command_executor.js @@ -89,7 +89,7 @@ export default class RootCommandExecutor extends Component { } async showOptionsCommand() { - await this.showAndHoistSubtree('options'); + await this.showAndHoistSubtree('_options'); } async showSQLConsoleHistoryCommand() { diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 5bfa8c65b..c40a421c1 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -369,17 +369,18 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { return false; } }, - beforeActivate: (event, data) => { + beforeActivate: (event, {node}) => { // hidden subtree is hidden hackily, prevent activating it e.g. by keyboard if (hoistedNoteService.getHoistedNoteId() === '_hidden') { // if we're hoisted in hidden subtree, we want to avoid crossing to "visible" tree, - // which could happen via UP key from hidden root (to another top level note) - return data.node.data.noteId === '_hidden' || data.node.getParent().data.noteId !== 'root'; + // which could happen via UP key from hidden root + + return node.data.noteId !== 'root'; } // we're not hoisted to hidden subtree, the only way to cross is via DOWN key to the hidden root - return data.node.data.noteId !== '_hidden'; + return node.data.noteId !== '_hidden'; }, activate: async (event, data) => { // click event won't propagate so let's close context menu manually diff --git a/src/public/app/widgets/type_widgets/content/backend_log.js b/src/public/app/widgets/type_widgets/content/backend_log.js index bfb2513e5..2799ff6b2 100644 --- a/src/public/app/widgets/type_widgets/content/backend_log.js +++ b/src/public/app/widgets/type_widgets/content/backend_log.js @@ -17,7 +17,7 @@ const TPL = `
`; -export default class ContentLogWidget extends NoteContextAwareWidget { +export default class BackendLogWidget extends NoteContextAwareWidget { doRender() { this.$widget = $(TPL); this.$backendLogTextArea = this.$widget.find(".backend-log-textarea"); diff --git a/src/public/app/widgets/type_widgets/content_widget.js b/src/public/app/widgets/type_widgets/content_widget.js index a4ef972a0..7b6660158 100644 --- a/src/public/app/widgets/type_widgets/content_widget.js +++ b/src/public/app/widgets/type_widgets/content_widget.js @@ -27,7 +27,7 @@ import DatabaseIntegrityCheckOptions from "./options/advanced/database_integrity import ConsistencyChecksOptions from "./options/advanced/consistency_checks.js"; import VacuumDatabaseOptions from "./options/advanced/vacuum_database.js"; import DatabaseAnonymizationOptions from "./options/advanced/database_anonymization.js"; -import ContentLogWidget from "./content/backend_log.js"; +import BackendLogWidget from "./content/backend_log.js"; const TPL = `