mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Add icon link for changing remote repo on the list (#4907)
* Add icon link for changing remote repo on the list Proposition for #4737 * Add icon link for changing remote repo on the list - corrections for PR #4907 - fixed syntax * Update zcl_abapgit_gui_page_repo_over.clas.abap Co-authored-by: Lars Hvam <larshp@hotmail.com> Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
df8d69526d
commit
549fc9a2ef
|
@ -364,6 +364,10 @@ table.db_tab th {
|
|||
table.db_tab tr.selected {
|
||||
background-color: rgba(191, 191, 191, 1) !important;
|
||||
}
|
||||
table.db_tab a.remote_repo {
|
||||
color: var(--theme-primary-font-color-reduced);
|
||||
}
|
||||
table.db_tab a.remote_repo:hover { color: var(--theme-link-color); }
|
||||
|
||||
/* DB ENTRY DISPLAY */
|
||||
div.db_entry {
|
||||
|
|
|
@ -323,7 +323,8 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
lv_text TYPE string,
|
||||
lv_lock TYPE string,
|
||||
lv_toggle_favorite_link TYPE string,
|
||||
lv_repo_go_link TYPE string.
|
||||
lv_repo_go_link TYPE string,
|
||||
lv_remote_icon_link TYPE string.
|
||||
|
||||
FIELD-SYMBOLS: <ls_repo> LIKE LINE OF it_repo_list.
|
||||
|
||||
|
@ -378,8 +379,18 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
iv_package = <ls_repo>-package
|
||||
iv_suppress_title = abap_true )->render( ) ) ).
|
||||
|
||||
|
||||
IF <ls_repo>-type = abap_false.
|
||||
lv_text = shorten_repo_url( <ls_repo>-url ).
|
||||
lv_remote_icon_link = ii_html->a(
|
||||
iv_txt = ii_html->icon( iv_name = 'edit-solid'
|
||||
iv_class = 'pad-sides'
|
||||
iv_hint = 'Change remote' )
|
||||
iv_act = |{ zif_abapgit_definitions=>c_action-repo_remote_settings }?| &&
|
||||
|key={ <ls_repo>-key }|
|
||||
iv_class = |remote_repo| ).
|
||||
|
||||
lv_text = shorten_repo_url( <ls_repo>-url ) && lv_remote_icon_link.
|
||||
|
||||
ii_html->add( column( iv_content = |{ ii_html->a(
|
||||
iv_txt = lv_text
|
||||
iv_title = <ls_repo>-url
|
||||
|
|
Loading…
Reference in New Issue
Block a user