add back button to stage page

This commit is contained in:
larshp 2025-03-25 08:55:12 +00:00
parent 90219ae271
commit 9cf41fd72f

View File

@ -878,8 +878,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
ro_toolbar = zcl_abapgit_html_toolbar=>create( 'toolbar-staging' ). ro_toolbar = zcl_abapgit_html_toolbar=>create( 'toolbar-staging' ).
IF lines( ms_files-local ) > 0 IF lines( ms_files-local ) > 0 OR lines( ms_files-remote ) > 0.
OR lines( ms_files-remote ) > 0.
ro_toolbar->add( ro_toolbar->add(
iv_txt = 'Refresh' iv_txt = 'Refresh'
iv_act = |{ c_action-stage_refresh }| iv_act = |{ c_action-stage_refresh }|
@ -890,7 +889,10 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
)->add( )->add(
iv_txt = |Patch| iv_txt = |Patch|
iv_typ = zif_abapgit_html=>c_action_type-onclick iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_id = |patchBtn| ). iv_id = |patchBtn|
)->add(
iv_txt = |Back|
iv_act = zif_abapgit_definitions=>c_action-go_back ).
ENDIF. ENDIF.
ENDMETHOD. ENDMETHOD.