Consolidate GUI actions (#6296)

This commit is contained in:
Marc Bernard 2023-05-23 18:03:31 +02:00 committed by GitHub
parent b77d419077
commit 84e5883cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,9 @@ CLASS zcl_abapgit_gui DEFINITION
END OF c_event_state .
CONSTANTS:
BEGIN OF c_action,
go_home TYPE string VALUE 'go_home',
go_db TYPE string VALUE 'go_db',
go_home TYPE string VALUE zif_abapgit_definitions=>c_action-go_home,
go_db TYPE string VALUE zif_abapgit_definitions=>c_action-go_db,
END OF c_action .
METHODS go_home
RAISING
zcx_abapgit_exception .

View File

@ -205,7 +205,7 @@ CLASS zcl_abapgit_gui_router IMPLEMENTATION.
lv_key = ii_event->query( )->get( 'KEY' ).
CASE ii_event->mv_action.
WHEN zcl_abapgit_gui=>c_action-go_home.
WHEN zif_abapgit_definitions=>c_action-go_home.
lv_last_repo_key = zcl_abapgit_persistence_user=>get_instance( )->get_repo_show( ).
IF lv_last_repo_key IS NOT INITIAL.

View File

@ -403,6 +403,7 @@ INTERFACE zif_abapgit_definitions
db_display TYPE string VALUE 'db_display',
db_edit TYPE string VALUE 'db_edit',
bg_update TYPE string VALUE 'bg_update',
go_home TYPE string VALUE 'go_home',
go_back TYPE string VALUE 'go_back',
go_explore TYPE string VALUE 'go_explore',
go_repo TYPE string VALUE 'go_repo',