Repo View: Remove file path in folder view (#5159)

No need to show path when in folder view.

Before:

After:
This commit is contained in:
Marc Bernard 2021-11-22 19:21:29 -05:00 committed by GitHub
parent 4ecbc30a2e
commit 928300a5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1039,7 +1039,11 @@ CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
ENDIF.
LOOP AT is_item-files INTO ls_file.
IF mv_show_folders = abap_true.
ri_html->add( |<div>{ ls_file-filename }</div>| ).
ELSE.
ri_html->add( |<div>{ ls_file-path && ls_file-filename }</div>| ).
ENDIF.
ENDLOOP.
ENDMETHOD.