From d2b906bc1b1a423cca61943538994ae72402a053 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 30 Dec 2022 17:41:45 +0100 Subject: [PATCH] global menu can open the user guide --- src/public/app/components/root_command_executor.js | 4 ++++ src/public/app/widgets/buttons/global_menu.js | 8 ++++---- src/public/app/widgets/dialogs/help.js | 4 ---- src/services/keyboard_actions.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/public/app/components/root_command_executor.js b/src/public/app/components/root_command_executor.js index d60b080c1..917f45af4 100644 --- a/src/public/app/components/root_command_executor.js +++ b/src/public/app/components/root_command_executor.js @@ -100,6 +100,10 @@ export default class RootCommandExecutor extends Component { await this.showAndHoistSubtree('_search'); } + async showUserGuideCommand() { + await this.showAndHoistSubtree('_userGuide'); + } + async showAndHoistSubtree(subtreeNoteId) { await appContext.tabManager.openContextWithNote(subtreeNoteId, true, null, subtreeNoteId); } diff --git a/src/public/app/widgets/buttons/global_menu.js b/src/public/app/widgets/buttons/global_menu.js index 89adaabad..7cf669a4e 100644 --- a/src/public/app/widgets/buttons/global_menu.js +++ b/src/public/app/widgets/buttons/global_menu.js @@ -75,7 +75,7 @@ const TPL = ` margin-right: 5px; } - body.mobile .show-help-button, body.mobile .show-about-dialog-button { + body.mobile .show-user-guide-button, body.mobile .show-about-dialog-button { /* hidden because these dialogs are not available for mobile */ display: none; } @@ -194,10 +194,10 @@ const TPL = ` -