diff --git a/src/web/pages/audits/dialog.js b/src/web/pages/audits/dialog.js index 4c09cad37b..6dd82bd07e 100644 --- a/src/web/pages/audits/dialog.js +++ b/src/web/pages/audits/dialog.js @@ -18,7 +18,7 @@ import React from 'react'; -import _ from 'gmp/locale'; +import styled from 'styled-components'; import {isDefined} from 'gmp/utils/identity'; import {selectSaveId} from 'gmp/utils/id'; @@ -39,7 +39,6 @@ import { } from 'gmp/models/scanner'; import PropTypes from 'web/utils/proptypes'; -import withCapabilities from 'web/utils/withCapabilities'; import {renderSelectItems, UNSET_VALUE} from 'web/utils/render'; import SaveDialog from 'web/components/dialog/savedialog'; @@ -54,12 +53,16 @@ import TextField from 'web/components/form/textfield'; import NewIcon from 'web/components/icon/newicon'; -import Divider from 'web/components/layout/divider'; -import Layout from 'web/components/layout/layout'; - import AddResultsToAssetsGroup from 'web/pages/tasks/addresultstoassetsgroup'; import AutoDeleteReportsGroup from 'web/pages/tasks/autodeletereportsgroup'; +import useTranslation from 'web/hooks/useTranslation'; +import useCapabilities from 'web/utils/useCapabilities'; + +const Title = styled.div` + flex-grow: 1; +`; + const getScanner = (scanners, scanner_id) => { if (!isDefined(scanners)) { return undefined; @@ -70,9 +73,14 @@ const getScanner = (scanners, scanner_id) => { }); }; -const ScannerSelect = props => { - const {changeAudit, isLoading, scannerId, scanners, onChange} = props; - +const ScannerSelect = ({ + changeAudit, + isLoading, + scannerId, + scanners, + onChange, +}) => { + const [_] = useTranslation(); return ( + - - - - - + + + - - - - - - - - - - - - + +