From f0eddb102890fe2ff8f13aa4df4e460417705401 Mon Sep 17 00:00:00 2001 From: Sarah Diedrich Date: Tue, 23 Apr 2019 14:48:30 +0200 Subject: [PATCH 1/2] Remove sort by credential type from Target view --- gsa/src/web/pages/targets/table.js | 48 +----------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/gsa/src/web/pages/targets/table.js b/gsa/src/web/pages/targets/table.js index a7ac7fd382..e374761f14 100644 --- a/gsa/src/web/pages/targets/table.js +++ b/gsa/src/web/pages/targets/table.js @@ -27,12 +27,6 @@ import {withEntitiesHeader} from 'web/entities/header'; import {createEntitiesTable} from 'web/entities/table'; import withRowDetails from 'web/entities/withRowDetails'; -import Select from 'web/components/form/select'; - -import Divider from 'web/components/layout/divider'; - -import Sort from 'web/components/sortby/sortby'; - import TableHead from 'web/components/table/head'; import TableHeader from 'web/components/table/header'; import TableRow from 'web/components/table/row'; @@ -49,16 +43,6 @@ const Header = ({ currentSortDir, onSortChange, }) => { - let selectSort = 'ssh_credential'; - const sortBy = filter ? filter.getSortBy() : undefined; - - if ( - sortBy === 'smb_credential' || - sortBy === 'esxi_credential' || - sortBy === 'snmp_credential' - ) { - selectSort = sortBy; - } return ( @@ -98,37 +82,7 @@ const Header = ({ > {_('Port List')} - - - - {_('Credentials')} - - {sort !== false && ( -