Repo view: Fix "View > Changes only" for offline (#5641)

Closes #4266
This commit is contained in:
Marc Bernard 2022-07-06 10:23:28 +02:00 committed by GitHub
parent 96cd546c7e
commit 89103ce49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,15 +865,19 @@ CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
CLEAR lv_msg.
IF mo_repo->is_offline( ) = abap_true
AND mo_repo->has_remote_source( ) = abap_true
AND mo_repo_aggregated_state->is_unchanged( ) = abap_true.
" Offline match banner
lv_msg = 'ZIP source is attached and completely <b>matches</b> the local state'.
ELSEIF lines( lt_repo_items ) = 0.
" Online match banner
IF lines( lt_repo_items ) = 0.
IF mv_changes_only = abap_true.
lv_msg = 'Local state completely <b>matches</b> the remote repository'.
IF mo_repo->is_offline( ) = abap_true.
" Offline match banner
IF mo_repo->has_remote_source( ) = abap_true.
lv_msg = 'Local state completely <b>matches</b> the ZIP file'.
ELSE.
lv_msg = 'Import a ZIP file to see if there are any changes'.
ENDIF.
ELSE.
" Online match banner
lv_msg = 'Local state completely <b>matches</b> the remote repository'.
ENDIF.
ELSE.
lv_msg = |Package is empty. Show { build_dir_jump_link( 'parent' ) } package|.
ENDIF.