Skip to content

Commit

Permalink
[frontend] remove valid_until column in indicators list (#8520) (#8521)
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg authored Oct 1, 2024
1 parent 9a8fc45 commit 961fcf1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,13 @@ const defaultColumns: DataTableProps['dataColumns'] = {
return (<Tooltip title={file?.metaData?.mimetype}><>{b(file?.size)}</></Tooltip>);
},
},
valid_until: {
id: 'valid_until',
label: 'Valid until',
percentWidth: 10,
isSortable: true,
render: ({ valid_until }, { nsdt }) => <Tooltip title={nsdt(valid_until)}>{nsdt(valid_until)}</Tooltip>,
},
};

export const defaultColumnsMap = new Map<string, Partial<DataTableColumn>>(Object.entries(defaultColumns));
Original file line number Diff line number Diff line change
Expand Up @@ -153,24 +153,27 @@ const Indicators = () => {
);

const dataColumns: DataTableProps['dataColumns'] = {
pattern_type: {},
name: { percentWidth: 21 },
pattern_type: {
percentWidth: 11,
},
name: {
percentWidth: 24,
},
createdBy: {
isSortable: isRuntimeSort ?? false,
percentWidth: 12,
},
creator: {
isSortable: isRuntimeSort ?? false,
percentWidth: 12,
},
objectLabel: {
percentWidth: 15,
},
objectLabel: {},
created: {
percentWidth: 10,
percentWidth: 15,
render: ({ created }, { nsdt }) => <Tooltip title={nsdt(created)}>{nsdt(created)}</Tooltip>,
},
valid_until: {
label: 'Valid until',
percentWidth: 10,
isSortable: true,
},
objectMarking: {
percentWidth: 10,
isSortable: isRuntimeSort ?? false,
Expand Down

0 comments on commit 961fcf1

Please sign in to comment.