mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
UI: Adjustments to Repo Palette (#4079)
* UI: Adjustments to Repo Palette - Sort alphabetically - Pad offline icon (using CSS) * CSS * CSS * Remove css changes Css is fixed in #4112 Co-authored-by: Lars Hvam <larshp@hotmail.com> Co-authored-by: Alexander Tsybulsky <sbcgua@users.noreply.github.com>
This commit is contained in:
parent
e7b5281dde
commit
29aea372a5
|
@ -706,12 +706,17 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
|
|||
|
||||
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
|
||||
|
||||
" Sort list by display name
|
||||
LOOP AT lt_repo_list ASSIGNING <ls_repo>.
|
||||
<ls_repo>-local_settings-display_name = li_repo_srv->get( <ls_repo>-key )->get_name( ).
|
||||
ENDLOOP.
|
||||
SORT lt_repo_list BY local_settings-display_name AS TEXT.
|
||||
|
||||
ri_html->add( 'var repoCatalog = [' ). " Maybe separate this into another method if needed in more places
|
||||
LOOP AT lt_repo_list ASSIGNING <ls_repo>.
|
||||
lo_repo = li_repo_srv->get( <ls_repo>-key ). " inefficient
|
||||
lv_repo_json = |\{ key: "{ <ls_repo>-key
|
||||
}", isOffline: "{ <ls_repo>-offline
|
||||
}", displayName: "{ lo_repo->get_name( ) }" \}|.
|
||||
}", displayName: "{ <ls_repo>-local_settings-display_name }" \}|.
|
||||
IF sy-tabix < lv_size.
|
||||
lv_repo_json = lv_repo_json && ','.
|
||||
ENDIF.
|
||||
|
|
Loading…
Reference in New Issue
Block a user