From 7fdd5df0c4f2587314e619831b233441fb070a39 Mon Sep 17 00:00:00 2001 From: Preeti Wadhwani Date: Fri, 17 Nov 2023 16:28:48 +0530 Subject: [PATCH] RHIROS-1302 enable group sorting --- src/Routes/RosPage/RosPage.js | 5 ++--- src/Utilities/api.js | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Routes/RosPage/RosPage.js b/src/Routes/RosPage/RosPage.js index 4c0d1426..7931875d 100644 --- a/src/Routes/RosPage/RosPage.js +++ b/src/Routes/RosPage/RosPage.js @@ -64,7 +64,7 @@ class RosPage extends React.Component { this.sortingHeader = { display_name: 'display_name', /* eslint-disable-line camelcase */ - group_name: 'group_name', /* eslint-disable-line camelcase */ + groups: 'group_name', /* eslint-disable-line camelcase */ os: 'os', 'performance_utilization.cpu': 'cpu', 'performance_utilization.memory': 'memory', @@ -94,8 +94,7 @@ class RosPage extends React.Component { renderFunc: (data) => displayGroup(data), isChecked: true, isDisabled: false, - isShownByDefault: true, - props: { isStatic: true } + isShownByDefault: true }); } diff --git a/src/Utilities/api.js b/src/Utilities/api.js index 194e996e..c15e4cd8 100644 --- a/src/Utilities/api.js +++ b/src/Utilities/api.js @@ -64,6 +64,7 @@ export const fetchSystems = async (fetchParams) => { const sortingHeader = { display_name: 'display_name', /* eslint-disable-line camelcase */ + groups: 'group_name', /* eslint-disable-line camelcase */ os: 'os', 'performance_utilization.cpu': 'cpu', 'performance_utilization.memory': 'memory',