mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Repo View: Consolidate "Stage" and "Force Stage" (#5889)
Co-authored-by: Lars Hvam <larshp@hotmail.com> Co-authored-by: Christian Günter <christianguenter@googlemail.com>
This commit is contained in:
parent
3054b2fa18
commit
7190cab413
|
@ -280,9 +280,6 @@ CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
IF mo_repo->is_offline( ) = abap_false. " Online ?
|
IF mo_repo->is_offline( ) = abap_false. " Online ?
|
||||||
ro_advanced_dropdown->add( iv_txt = 'Force Stage'
|
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?key={ mv_key }| ).
|
|
||||||
|
|
||||||
CLEAR lv_crossout.
|
CLEAR lv_crossout.
|
||||||
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>c_authorization-transport_to_branch ) = abap_false.
|
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>c_authorization-transport_to_branch ) = abap_false.
|
||||||
lv_crossout = zif_abapgit_html=>c_html_opt-crossout.
|
lv_crossout = zif_abapgit_html=>c_html_opt-crossout.
|
||||||
|
@ -479,12 +476,10 @@ CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-git_pull }?key={ mv_key }|
|
iv_act = |{ zif_abapgit_definitions=>c_action-git_pull }?key={ mv_key }|
|
||||||
iv_opt = iv_pull_opt ).
|
iv_opt = iv_pull_opt ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
IF mo_repo_aggregated_state->local( ) IS NOT INITIAL. " Something new at local
|
IF mo_repo_aggregated_state->is_unchanged( ) = abap_false. " Any changes
|
||||||
ro_toolbar->add( iv_txt = 'Stage'
|
ro_toolbar->add( iv_txt = 'Stage'
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?key={ mv_key }|
|
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?key={ mv_key }|
|
||||||
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
|
||||||
ENDIF.
|
|
||||||
IF mo_repo_aggregated_state->is_unchanged( ) = abap_false. " Any changes
|
|
||||||
ro_toolbar->add( iv_txt = 'Diff'
|
ro_toolbar->add( iv_txt = 'Diff'
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-go_repo_diff }?key={ mv_key }|
|
iv_act = |{ zif_abapgit_definitions=>c_action-go_repo_diff }?key={ mv_key }|
|
||||||
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user