From 1b6d0c9bbc412806eb4809df85b367353dd0a666 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 14 Dec 2022 10:29:14 +0100 Subject: [PATCH] global menu improvements --- src/public/app/components/entrypoints.js | 6 +----- .../app/widgets/attribute_widgets/attribute_detail.js | 3 ++- src/public/app/widgets/buttons/global_menu.js | 6 ------ src/services/special_notes.js | 2 ++ 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/public/app/components/entrypoints.js b/src/public/app/components/entrypoints.js index 1b35cc183..92550b206 100644 --- a/src/public/app/components/entrypoints.js +++ b/src/public/app/components/entrypoints.js @@ -86,11 +86,7 @@ export default class Entrypoints extends Component { if (win.isFullScreenable()) { win.setFullScreen(!win.isFullScreen()); } - } - else { - // outside of electron this is handled by the browser - this.$widget.find(".toggle-fullscreen-button").hide(); - } + } // outside of electron this is handled by the browser } reloadFrontendAppCommand() { diff --git a/src/public/app/widgets/attribute_widgets/attribute_detail.js b/src/public/app/widgets/attribute_widgets/attribute_detail.js index ef708250b..c3f266077 100644 --- a/src/public/app/widgets/attribute_widgets/attribute_detail.js +++ b/src/public/app/widgets/attribute_widgets/attribute_detail.js @@ -238,7 +238,8 @@ const ATTR_HELP = { "template": "This note will appear in the selection of available template when creating new note", "toc": "#toc or #toc=show will force the Table of Contents to be shown, #toc=hide will force hiding it. If the label doesn't exist, the global setting is observed", "color": "defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f", - "keyboardShortcut": "Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect." + "keyboardShortcut": "Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect.", + "keepCurrentHoisting": "Opening this link won't change hoisting even if the note is not displayable in the current hoisted subtree." }, "relation": { "runOnNoteCreation": "executes when note is created on backend. Use this relation if you want to run the script for all notes created under a specific subtree. In that case, create it on the subtree root note and make it inheritable. A new note created within the subtree (any depth) will trigger the script.", diff --git a/src/public/app/widgets/buttons/global_menu.js b/src/public/app/widgets/buttons/global_menu.js index e1315066b..1f8594c03 100644 --- a/src/public/app/widgets/buttons/global_menu.js +++ b/src/public/app/widgets/buttons/global_menu.js @@ -135,12 +135,6 @@ const TPL = ` - -