mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
Disable sorting for action column (#4087)
* Disable sorting for action column * abaplint * Revert renamed methods
This commit is contained in:
parent
6b336c58f0
commit
888bbcb27e
|
@ -584,11 +584,16 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=DESCENDING|
|
iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=DESCENDING|
|
||||||
iv_title = <ls_col>-title ).
|
iv_title = <ls_col>-title ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ELSE.
|
ELSEIF <ls_col>-allow_order_by = abap_true.
|
||||||
lv_tmp = lv_tmp && ri_html->a(
|
lv_tmp = lv_tmp && ri_html->a(
|
||||||
iv_txt = lv_disp_name
|
iv_txt = lv_disp_name
|
||||||
iv_act = |{ zif_abapgit_definitions=>c_action-change_order_by }?orderBy={ <ls_col>-tech_name }|
|
iv_act = |{ zif_abapgit_definitions=>c_action-change_order_by }?orderBy={ <ls_col>-tech_name }|
|
||||||
iv_title = <ls_col>-title ).
|
iv_title = <ls_col>-title ).
|
||||||
|
ELSE.
|
||||||
|
lv_tmp = lv_tmp && ri_html->a(
|
||||||
|
iv_txt = lv_disp_name
|
||||||
|
iv_act = ``
|
||||||
|
iv_title = <ls_col>-title ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
IF <ls_col>-tech_name = iv_order_by
|
IF <ls_col>-tech_name = iv_order_by
|
||||||
|
|
|
@ -104,7 +104,8 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
||||||
iv_display_name TYPE string OPTIONAL
|
iv_display_name TYPE string OPTIONAL
|
||||||
iv_css_class TYPE string OPTIONAL
|
iv_css_class TYPE string OPTIONAL
|
||||||
iv_add_tz TYPE abap_bool OPTIONAL
|
iv_add_tz TYPE abap_bool OPTIONAL
|
||||||
iv_title TYPE string OPTIONAL.
|
iv_title TYPE string OPTIONAL
|
||||||
|
iv_allow_order_by TYPE any OPTIONAL.
|
||||||
|
|
||||||
METHODS render_scripts
|
METHODS render_scripts
|
||||||
RETURNING
|
RETURNING
|
||||||
|
@ -442,64 +443,76 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_OVER IMPLEMENTATION.
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'FAVORITE'
|
iv_tech_name = 'FAVORITE'
|
||||||
iv_css_class = 'wmin' ).
|
iv_css_class = 'wmin'
|
||||||
|
iv_allow_order_by = abap_false ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'TYPE'
|
iv_tech_name = 'TYPE'
|
||||||
iv_css_class = 'wmin' ).
|
iv_css_class = 'wmin'
|
||||||
|
iv_allow_order_by = abap_false ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'NAME'
|
iv_tech_name = 'NAME'
|
||||||
iv_display_name = 'Name' ).
|
iv_display_name = 'Name'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'URL'
|
iv_tech_name = 'URL'
|
||||||
iv_display_name = 'Url' ).
|
iv_display_name = 'Url'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'PACKAGE'
|
iv_tech_name = 'PACKAGE'
|
||||||
iv_display_name = 'Package' ).
|
iv_display_name = 'Package'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'BRANCH'
|
iv_tech_name = 'BRANCH'
|
||||||
iv_display_name = 'Branch' ).
|
iv_display_name = 'Branch'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'DESERIALIZED_BY'
|
iv_tech_name = 'DESERIALIZED_BY'
|
||||||
iv_display_name = 'Deserialized by'
|
iv_display_name = 'Deserialized by'
|
||||||
iv_css_class = 'ro-detail' ).
|
iv_css_class = 'ro-detail'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'DESERIALIZED_AT'
|
iv_tech_name = 'DESERIALIZED_AT'
|
||||||
iv_display_name = 'Deserialized at'
|
iv_display_name = 'Deserialized at'
|
||||||
iv_css_class = 'ro-detail'
|
iv_css_class = 'ro-detail'
|
||||||
iv_add_tz = abap_true ).
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'CREATED_BY'
|
iv_tech_name = 'CREATED_BY'
|
||||||
iv_display_name = 'Created by'
|
iv_display_name = 'Created by'
|
||||||
iv_css_class = 'ro-detail' ).
|
iv_css_class = 'ro-detail'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'CREATED_AT'
|
iv_tech_name = 'CREATED_AT'
|
||||||
iv_display_name = 'Created at'
|
iv_display_name = 'Created at'
|
||||||
iv_css_class = 'ro-detail'
|
iv_css_class = 'ro-detail'
|
||||||
iv_add_tz = abap_true ).
|
iv_add_tz = abap_true
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'KEY'
|
iv_tech_name = 'KEY'
|
||||||
iv_display_name = 'Key'
|
iv_display_name = 'Key'
|
||||||
iv_css_class = 'ro-detail' ).
|
iv_css_class = 'ro-detail'
|
||||||
|
iv_allow_order_by = abap_true ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'ACTION'
|
iv_tech_name = 'ACTION'
|
||||||
iv_display_name = 'Action'
|
iv_display_name = 'Action'
|
||||||
iv_css_class = 'ro-action' ).
|
iv_css_class = 'ro-action'
|
||||||
|
iv_allow_order_by = abap_false ).
|
||||||
|
|
||||||
_add_column(
|
_add_column(
|
||||||
iv_tech_name = 'GO'
|
iv_tech_name = 'GO'
|
||||||
iv_css_class = 'ro-go' ).
|
iv_css_class = 'ro-go'
|
||||||
|
iv_allow_order_by = abap_false ).
|
||||||
|
|
||||||
ii_html->add( |<thead>| ).
|
ii_html->add( |<thead>| ).
|
||||||
ii_html->add( |<tr>| ).
|
ii_html->add( |<tr>| ).
|
||||||
|
@ -588,5 +601,6 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_OVER IMPLEMENTATION.
|
||||||
<ls_col>-title = iv_title.
|
<ls_col>-title = iv_title.
|
||||||
<ls_col>-css_class = iv_css_class.
|
<ls_col>-css_class = iv_css_class.
|
||||||
<ls_col>-add_tz = iv_add_tz.
|
<ls_col>-add_tz = iv_add_tz.
|
||||||
|
<ls_col>-allow_order_by = iv_allow_order_by.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
|
@ -368,6 +368,7 @@ INTERFACE zif_abapgit_definitions
|
||||||
css_class TYPE string,
|
css_class TYPE string,
|
||||||
add_tz TYPE abap_bool,
|
add_tz TYPE abap_bool,
|
||||||
title TYPE string,
|
title TYPE string,
|
||||||
|
allow_order_by TYPE abap_bool,
|
||||||
END OF ty_col_spec,
|
END OF ty_col_spec,
|
||||||
ty_col_spec_tt TYPE STANDARD TABLE OF ty_col_spec
|
ty_col_spec_tt TYPE STANDARD TABLE OF ty_col_spec
|
||||||
WITH NON-UNIQUE KEY tech_name.
|
WITH NON-UNIQUE KEY tech_name.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user