Skip to content

Commit

Permalink
Gave OSP_SENSOR_SCANNER_TYPE the same scan config options as GMP Scan…
Browse files Browse the repository at this point in the history
…ner types
  • Loading branch information
saberlynx committed Sep 27, 2019
1 parent 6ba0f7a commit b1d96d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gsa/src/web/pages/tasks/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
OSP_SCANNER_TYPE,
GMP_SCANNER_TYPE,
OPENVAS_DEFAULT_SCANNER_ID,
OSP_SENSOR_SCANNER_TYPE,
} from 'gmp/models/scanner';

import {
Expand Down Expand Up @@ -305,7 +306,9 @@ const TaskDialog = ({

const use_openvas_scan_config =
state.scanner_type === OPENVAS_SCANNER_TYPE ||
state.scanner_type === GMP_SCANNER_TYPE;
state.scanner_type === GMP_SCANNER_TYPE ||
state.scanner_type === OSP_SENSOR_SCANNER_TYPE;

return (
<Layout flex="column">
<FormGroup title={_('Name')}>
Expand Down

0 comments on commit b1d96d5

Please sign in to comment.