Skip to content

Commit

Permalink
Disable hiding of relevant fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Dec 12, 2024
1 parent 322819d commit ff2d2c2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J
id: FIELD_STATUS,
elements: STATUS_TYPES,
label: __( 'Status', 'jetpack-components' ),
enableHiding: false,
getValue( { item } ) {
if ( item.checked ) {
if ( item.threats.length > 0 ) {
Expand Down Expand Up @@ -152,18 +153,25 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J
id: FIELD_TYPE,
label: __( 'Type', 'jetpack-components' ),
elements: TYPES,
enableHiding: false,
},
{
id: FIELD_NAME,
label: __( 'Name', 'jetpack-components' ),
enableHiding: false,
enableGlobalSearch: true,
getValue( { item }: { item: ScanReportExtension } ) {
if ( view.type === 'list' && item.type === 'files' ) {
return 'Files';
}

return item.name ? item.name : '';
},
},
{
id: FIELD_VERSION,
label: __( 'Version', 'jetpack-components' ),
enableHiding: false,
enableSorting: false,
enableGlobalSearch: true,
getValue( { item }: { item: ScanReportExtension } ) {
Expand Down

0 comments on commit ff2d2c2

Please sign in to comment.