mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
enable command palette for Diff/Patch/Stage (#5040)
* enable command palette for Diff/Patch * enable command palette for Stage Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
bf5634d243
commit
a8e7518348
|
@ -2268,10 +2268,18 @@ function enumerateToolbarActions() {
|
|||
if (items.length === 0) return;
|
||||
|
||||
items = items.map(function(item) {
|
||||
var action = "";
|
||||
var anchor = item[0];
|
||||
if (anchor.href.includes("#")) {
|
||||
action = function(){
|
||||
anchor.click();
|
||||
};
|
||||
} else {
|
||||
action = anchor.href.replace("sapevent:", "");
|
||||
}
|
||||
var prefix = item[1];
|
||||
return {
|
||||
action: anchor.href.replace("sapevent:", ""),
|
||||
action: action,
|
||||
title: (prefix ? prefix + ": " : "") + anchor.innerText.trim()
|
||||
};
|
||||
});
|
||||
|
|
|
@ -462,7 +462,7 @@ CLASS zcl_abapgit_gui_page_diff IMPLEMENTATION.
|
|||
|
||||
METHOD build_menu.
|
||||
|
||||
CREATE OBJECT ro_menu.
|
||||
CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-main'.
|
||||
|
||||
add_menu_begin( ro_menu ).
|
||||
add_jump_sub_menu( ro_menu ).
|
||||
|
|
|
@ -127,7 +127,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
|
|||
|
||||
METHOD build_menu.
|
||||
|
||||
CREATE OBJECT ro_menu.
|
||||
CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-main'.
|
||||
|
||||
IF lines( ms_files-local ) > 0
|
||||
OR lines( ms_files-remote ) > 0.
|
||||
|
|
Loading…
Reference in New Issue
Block a user