mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
Add "Refresh" to repository list
Initialize repo list from database
This commit is contained in:
parent
8e02089f8f
commit
24b7e4faf6
|
@ -4,6 +4,7 @@ CLASS zcl_abapgit_gui_buttons DEFINITION
|
|||
CREATE PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
|
||||
CLASS-METHODS new_online
|
||||
RETURNING VALUE(rv_html_string) TYPE string.
|
||||
|
||||
|
@ -28,6 +29,9 @@ CLASS zcl_abapgit_gui_buttons DEFINITION
|
|||
CLASS-METHODS experimental
|
||||
RETURNING VALUE(rv_html_string) TYPE string.
|
||||
|
||||
CLASS-METHODS refresh
|
||||
RETURNING VALUE(rv_html_string) TYPE string.
|
||||
|
||||
PROTECTED SECTION.
|
||||
PRIVATE SECTION.
|
||||
ENDCLASS.
|
||||
|
@ -51,6 +55,11 @@ CLASS zcl_abapgit_gui_buttons IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD flow.
|
||||
rv_html_string = zcl_abapgit_html=>icon( 'flow' ) && ' Flow'.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD help.
|
||||
rv_html_string = zcl_abapgit_html=>icon(
|
||||
iv_name = 'question-circle-solid'
|
||||
|
@ -68,8 +77,10 @@ CLASS zcl_abapgit_gui_buttons IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD flow.
|
||||
rv_html_string = zcl_abapgit_html=>icon( 'flow' ) && ' Flow'.
|
||||
METHOD refresh.
|
||||
rv_html_string = zcl_abapgit_html=>icon(
|
||||
iv_name = 'redo-alt-solid'
|
||||
iv_hint = 'Refresh' ).
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
|||
select TYPE string VALUE 'select',
|
||||
apply_filter TYPE string VALUE 'apply_filter',
|
||||
label_filter TYPE string VALUE 'label_filter',
|
||||
refresh_list TYPE string VALUE 'refresh_list',
|
||||
END OF c_action,
|
||||
c_label_filter_prefix TYPE string VALUE `label:`,
|
||||
c_raw_field_suffix TYPE string VALUE `_RAW` ##NO_TEXT.
|
||||
|
@ -932,6 +933,11 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
save_settings( ).
|
||||
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
|
||||
|
||||
WHEN c_action-refresh_list.
|
||||
|
||||
zcl_abapgit_repo_srv=>get_instance( )->init( ).
|
||||
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
|
||||
|
||||
ENDCASE.
|
||||
|
||||
ENDMETHOD.
|
||||
|
@ -983,6 +989,11 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
ls_hotkey_action-hotkey = |a|.
|
||||
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
|
||||
|
||||
ls_hotkey_action-description = |Refresh|.
|
||||
ls_hotkey_action-action = c_action-refresh_list.
|
||||
ls_hotkey_action-hotkey = |r|.
|
||||
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
|
||||
|
||||
" registered/handled in js
|
||||
ls_hotkey_action-description = |Previous Repository|.
|
||||
ls_hotkey_action-action = `#`.
|
||||
|
@ -1024,6 +1035,9 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
|||
)->add(
|
||||
iv_txt = zcl_abapgit_gui_buttons=>settings( )
|
||||
iv_act = zif_abapgit_definitions=>c_action-go_settings
|
||||
)->add(
|
||||
iv_txt = zcl_abapgit_gui_buttons=>refresh( )
|
||||
iv_act = c_action-refresh_list
|
||||
)->add(
|
||||
iv_txt = zcl_abapgit_gui_buttons=>advanced( )
|
||||
io_sub = zcl_abapgit_gui_menus=>advanced( )
|
||||
|
|
Loading…
Reference in New Issue
Block a user