page_diff UX: pre-merge fixes

This commit is contained in:
Alexander Tsybulsky 2017-03-11 11:23:18 +02:00
parent be79b3234a
commit fe6a4c6567
3 changed files with 5 additions and 6 deletions

View File

@ -184,7 +184,6 @@ table.repo_tab {
border: 1px solid #DDD;
border-radius: 3px;
background: #fff;
margin-top: 0.5em;
width: 100%;
}
.repo_tab td {

View File

@ -48,7 +48,7 @@ CLASS lcl_gui_page_diff DEFINITION FINAL INHERITING FROM lcl_gui_page.
mt_delayed_lines TYPE lcl_diff=>ty_diffs_tt,
mv_unified TYPE abap_bool VALUE abap_true,
mv_repo_key TYPE lcl_persistence_repo=>ty_repo-key,
mv_seed TYPE string.
mv_seed TYPE string. " Unique page id to bind JS sessionStorage
METHODS render_diff
IMPORTING is_diff TYPE ty_file_diff
@ -105,7 +105,7 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
mv_repo_key = iv_key.
GET TIME STAMP FIELD lv_ts.
mv_seed = |diff{ lv_ts }|.
mv_seed = |diff{ lv_ts }|. " Generate based on time
ASSERT is_file IS INITIAL OR is_object IS INITIAL. " just one passed

View File

@ -26,7 +26,7 @@ CLASS lcl_gui_page_stage DEFINITION FINAL INHERITING FROM lcl_gui_page.
PRIVATE SECTION.
DATA: mo_repo TYPE REF TO lcl_repo_online,
ms_files TYPE ty_stage_files,
mv_seed TYPE string.
mv_seed TYPE string. " Unique page id to bind JS sessionStorage
METHODS:
render_list
@ -68,7 +68,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
ms_files = lcl_stage_logic=>get( mo_repo ).
mv_seed = iv_seed.
IF mv_seed IS INITIAL.
IF mv_seed IS INITIAL. " Generate based on time unless obtained from diff page
GET TIME STAMP FIELD lv_ts.
mv_seed = |stage{ lv_ts }|.
ENDIF.
@ -318,7 +318,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
CREATE OBJECT ro_html.
ro_html->add( 'var gStageParams = {' ).
ro_html->add( | seed: "{ mv_seed }",| ).
ro_html->add( | seed: "{ mv_seed }",| ). " Unique page id
ro_html->add( ' formAction: "stage_commit",' ).
ro_html->add( ' ids: {' ).