Skip to content

Commit

Permalink
Fix double entries in command palette
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools committed Feb 19, 2024
1 parent a3d323f commit db54d01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/#mbtools#mbt_common_js.w3mi.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
/* exported enableArrowListNavigation */
/* exported activateLinkHints */
/* exported setKeyBindings */
/* exported enumerateToolbarActions */
/* exported CommandPalette */
/* exported enumerateUiActions */

/**********************************************************
* Polyfills
Expand Down Expand Up @@ -1194,4 +1195,4 @@ function toggleBrowserControlWarning(){
function displayBrowserControlFooter() {
var out = document.getElementById("browser-control-footer");
out.innerHTML = " - " + ( navigator.userAgent.includes("Edg") ? "Edge" : "IE" );
}
}
2 changes: 1 addition & 1 deletion src/ui/#mbtools#cl_gui_page.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ CLASS /mbtools/cl_gui_page IMPLEMENTATION.

METHOD render_command_palettes.

ii_html->add( 'var gCommandPalette = new CommandPalette(enumerateToolbarActions, {' ).
ii_html->add( 'var gCommandPalette = new CommandPalette(enumerateUiActions, {' ).
ii_html->add( ' toggleKey: "F1",' ).
ii_html->add( ' hotkeyDescription: "Command ..."' ).
ii_html->add( '});' ).
Expand Down
6 changes: 3 additions & 3 deletions src/uipages/#mbtools#cl_gui_page_main.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ CLASS /mbtools/cl_gui_page_main IMPLEMENTATION.

CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-main'.

CREATE OBJECT lo_support_menu.
CREATE OBJECT lo_support_menu EXPORTING iv_id = 'toolbar-support'.

lo_support_menu->add(
iv_txt = 'FAQ'
Expand All @@ -309,7 +309,7 @@ CLASS /mbtools/cl_gui_page_main IMPLEMENTATION.
iv_txt = 'Ticket'
iv_act = /mbtools/if_actions=>mbt_support ).

CREATE OBJECT lo_bar_menu.
CREATE OBJECT lo_bar_menu EXPORTING iv_id = 'toolbar-admin'.

CASE iv_mode.

Expand All @@ -321,7 +321,7 @@ CLASS /mbtools/cl_gui_page_main IMPLEMENTATION.

WHEN c_mode-admin.

CREATE OBJECT lo_tools_menu.
CREATE OBJECT lo_tools_menu EXPORTING iv_id = 'toolbar-tools'.

lo_tools_menu->add(
iv_txt = 'Add Tool'
Expand Down

0 comments on commit db54d01

Please sign in to comment.