From 0d923ad60adfce8d1325adfcffae00ad654aa118 Mon Sep 17 00:00:00 2001 From: Laurent Bonnet Date: Fri, 6 Sep 2024 12:09:48 +0200 Subject: [PATCH] [frontend] fixes --- .../dataGrid/components/DataTableHeader.tsx | 4 ++- .../StixCyberObservablesLines.jsx | 33 +------------------ 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/opencti-platform/opencti-front/src/components/dataGrid/components/DataTableHeader.tsx b/opencti-platform/opencti-front/src/components/dataGrid/components/DataTableHeader.tsx index 9077f5615eca9..a8f902d3c7bb7 100644 --- a/opencti-platform/opencti-front/src/components/dataGrid/components/DataTableHeader.tsx +++ b/opencti-platform/opencti-front/src/components/dataGrid/components/DataTableHeader.tsx @@ -94,7 +94,9 @@ const DataTableHeader: FunctionComponent = ({ } }} > - {t_i18n(column.label).toUpperCase()} + + {t_i18n(column.label).toUpperCase()} + {sortBy && (orderAsc ? : )} <> diff --git a/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservablesLines.jsx b/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservablesLines.jsx index a0dc3b0be54fa..519ab0d6fa670 100644 --- a/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservablesLines.jsx +++ b/opencti-platform/opencti-front/src/private/components/observations/stix_cyber_observables/StixCyberObservablesLines.jsx @@ -122,35 +122,4 @@ export const stixCyberObservablesLinesFragment = graphql` } } } - `; - -// export default createPaginationContainer( -// StixCyberObservablesLines, -// { -// data: stixCyberObservablesLinesFragment, -// }, -// { -// direction: 'forward', -// getConnectionFromProps(props) { -// return props.data && props.data.stixCyberObservables; -// }, -// getFragmentVariables(prevVars, totalCount) { -// return { -// ...prevVars, -// count: totalCount, -// }; -// }, -// getVariables(props, { count, cursor }, fragmentVariables) { -// return { -// types: fragmentVariables.types, -// search: fragmentVariables.search, -// count, -// cursor, -// orderBy: fragmentVariables.orderBy, -// orderMode: fragmentVariables.orderMode, -// filters: fragmentVariables.filters, -// }; -// }, -// query: stixCyberObservablesLinesQuery, -// }, -// ); + `;s;