From 056a0537e4b26bcd015e6ffd88ea5f696964145c Mon Sep 17 00:00:00 2001 From: Ramesh Kumar <ramesh.p@matriotsolutions.com> Date: Wed, 20 Oct 2021 20:19:40 +0530 Subject: [PATCH] TMSS-1002: Disable column filter and sortng for View Summary column. --- SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js | 2 +- .../frontend/tmss_webapp/src/routes/Timeline/list.tabs.js | 2 +- .../frontend/tmss_webapp/src/shared/timeline.constants.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js b/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js index c31bb08c6f3..59fa775acfd 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js @@ -2595,7 +2595,7 @@ function ViewTable(props) { accessor: header, filter: filtertype, Filter: filterFn, - disableSortBy: doServersideFilter?typeof disableSortBy !== 'undefined' ? disableSortBy : true:false, + disableSortBy: doServersideFilter?(typeof disableSortBy !== 'undefined' ? disableSortBy : true):(disableSortBy || false), disableFilters: doServersideFilter?typeof disableFilter !== 'undefined' ? disableFilter : true:false, //minResizeWidth: 50, //*** TO REMOVE - INCOMING CHANGE */ diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/list.tabs.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/list.tabs.js index 40888287921..2d86ba533db 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/list.tabs.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/list.tabs.js @@ -77,7 +77,7 @@ class TimelineListTabs extends Component { getUnschedulableList () { let unschedulableList = []; for(let unschedulableSU of this.props.unschedulableList ) { - unschedulableSU['summary'] = this.showUnschedulableSummary(unschedulableSU) + unschedulableSU['viewSummaryAction'] = this.showUnschedulableSummary(unschedulableSU) unschedulableList.push(unschedulableSU) } return unschedulableList; diff --git a/SAS/TMSS/frontend/tmss_webapp/src/shared/timeline.constants.js b/SAS/TMSS/frontend/tmss_webapp/src/shared/timeline.constants.js index db8b7557f15..0c8bd0f2b0d 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/shared/timeline.constants.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/shared/timeline.constants.js @@ -42,8 +42,10 @@ const TimelineConstants = { }], UNSCEDULABLE_SU_LIST_DEFAULT_COLUMNS: [{ - summary: { - name: "View Summary" + viewSummaryAction: { + name: "View Summary", + filter: "none", + disableSortBy: true }, status: { name:"Status", -- GitLab