diff --git a/src/ui/zcl_abapgit_gui_page_sett_info.clas.abap b/src/ui/zcl_abapgit_gui_page_sett_info.clas.abap index 8251b069e..d062a941e 100644 --- a/src/ui/zcl_abapgit_gui_page_sett_info.clas.abap +++ b/src/ui/zcl_abapgit_gui_page_sett_info.clas.abap @@ -191,10 +191,18 @@ CLASS zcl_abapgit_gui_page_sett_info IMPLEMENTATION. METHOD get_form_schema. + DATA lv_label TYPE string. + ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'repo-infos-form' iv_help_page = 'https://docs.abapgit.org/guide-repo-infos.html' ). + IF mo_repo->is_offline( ) = abap_true. + lv_label = 'ZIP File'. + ELSE. + lv_label = 'Remote'. + ENDIF. + ro_form->start_group( iv_name = c_id-info iv_label = 'Stats' @@ -226,10 +234,10 @@ CLASS zcl_abapgit_gui_page_sett_info IMPLEMENTATION. iv_width = '25%' iv_readonly = abap_true )->column( - iv_label = 'Remote' + iv_label = lv_label iv_width = '25%' iv_readonly = abap_true - )->command( + )->command( iv_label = 'Back' iv_action = c_event-go_back ). @@ -332,7 +340,10 @@ CLASS zcl_abapgit_gui_page_sett_info IMPLEMENTATION. IF lt_remote IS NOT INITIAL. ls_stats-measure = 'Number of Ignored Files'. - ls_stats-local = ls_stats-remote - ls_stats-local. " should be >= 0 + ls_stats-local = ls_stats-remote - ls_stats-local. + IF ls_stats-local < 0. + ls_stats-local = 0. + ENDIF. ls_stats-remote = 0. APPEND ls_stats TO mt_stats. ENDIF. @@ -358,7 +369,7 @@ CLASS zcl_abapgit_gui_page_sett_info IMPLEMENTATION. IF -lstate = lv_state. ls_stats-local = ls_stats-local + 1. ENDIF. - IF -rstate = lv_state. + IF -rstate = lv_state AND mo_repo->has_remote_source( ) = abap_true. ls_stats-remote = ls_stats-remote + 1. ENDIF. ENDLOOP.