mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Fixes of folders commit (#395)
* cherrypick cache repo results (#280) * lcl_gui_view_repo_content - code reorg #280 * fix * folders part 1 #280 * cherrypick refresh * cherrypick 2 pretty print * cherrypick log style * cherrypick lock icon * cherrypick background icon and toc marker * cherrypick macro include * unit test for lcl_path and fixes * folders part2 #280 * changes_only at user profile #280 * fix empty package * fix dump on type change * new repo, remove fixes, close #393, close #394 * merge fix
This commit is contained in:
parent
ba33f71737
commit
2242e6d4e3
|
@ -86,7 +86,6 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
|
|||
CATCH lcx_exception.
|
||||
ENDTRY.
|
||||
|
||||
CREATE OBJECT mo_repo_content EXPORTING iv_key = lv_key. " Reinit content state
|
||||
ev_state = gc_event_state-re_render.
|
||||
ENDCASE.
|
||||
|
||||
|
@ -131,8 +130,9 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
|
|||
|
||||
METHOD retrieve_active_repo.
|
||||
|
||||
DATA: lt_repos TYPE lcl_repo_srv=>ty_repo_tt,
|
||||
lo_repo LIKE LINE OF lt_repos.
|
||||
DATA: lt_repos TYPE lcl_repo_srv=>ty_repo_tt,
|
||||
lo_repo LIKE LINE OF lt_repos,
|
||||
lv_show_old LIKE mv_show.
|
||||
|
||||
TRY.
|
||||
lt_repos = lcl_app=>repo_srv( )->list( ).
|
||||
|
@ -140,7 +140,8 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
|
|||
RETURN.
|
||||
ENDTRY.
|
||||
|
||||
mv_show = lcl_app=>user( )->get_repo_show( ). " Get default repo from user cfg
|
||||
lv_show_old = mv_show.
|
||||
mv_show = lcl_app=>user( )->get_repo_show( ). " Get default repo from user cfg
|
||||
|
||||
IF mv_show IS NOT INITIAL.
|
||||
TRY. " verify the key exists
|
||||
|
@ -158,6 +159,10 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
|
|||
ENDIF.
|
||||
ENDIF.
|
||||
|
||||
IF lv_show_old <> mv_show.
|
||||
CREATE OBJECT mo_repo_content EXPORTING iv_key = mv_show. " Reinit content state
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD. "retrieve_active_repo
|
||||
|
||||
METHOD build_main_menu.
|
||||
|
@ -283,10 +288,6 @@ CLASS lcl_gui_page_main IMPLEMENTATION.
|
|||
|
||||
CREATE OBJECT ro_html.
|
||||
|
||||
IF mo_repo_content IS NOT BOUND.
|
||||
CREATE OBJECT mo_repo_content EXPORTING iv_key = io_repo->get_key( ).
|
||||
ENDIF.
|
||||
|
||||
ro_html->add( |<div class="repo" id="repo{ io_repo->get_key( ) }">| ).
|
||||
ro_html->add( render_repo_top( io_repo = io_repo iv_interactive_branch = abap_true ) ).
|
||||
ro_html->add( mo_repo_content->lif_gui_page~render( ) ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user