Skip to content

Commit

Permalink
Merge pull request #1291 from sarahd93/port-ranges_gsa8
Browse files Browse the repository at this point in the history
Fix port ranges from file radio button
  • Loading branch information
bjoernricks authored Apr 17, 2019
2 parents 41df22f + 2ddaa94 commit 6fc3909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $ cd gsa && git checkout gsa-8.0 && git log

## gsa 8.0.1 (unreleased)

* Fix port ranges from file radio button #1291
* Don't run more then one reload timer for a page #1289
* Set first=1 when starting delta report selection #1288
* Fix pagination with default filter (reset filter.id if filter is changed) #1288
Expand Down
8 changes: 4 additions & 4 deletions gsa/src/web/pages/portlists/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';

import _ from 'gmp/locale';

import {NO_VALUE, YES_VALUE} from 'gmp/parser';
import {NO_VALUE, YES_VALUE, parseYesNo} from 'gmp/parser';

import {isDefined} from 'gmp/utils/identity';

Expand Down Expand Up @@ -119,13 +119,13 @@ const PortListsDialog = ({
name="from_file"
value={NOT_FROM_FILE}
onChange={onValueChange}
checked={from_file !== FROM_FILE}
checked={parseYesNo(state.from_file) !== FROM_FILE}
/>
<TextField
grow="1"
name="port_range"
value={state.port_range}
disabled={from_file === FROM_FILE}
disabled={parseYesNo(state.from_file) === FROM_FILE}
onChange={onValueChange}
size="30"
/>
Expand All @@ -136,7 +136,7 @@ const PortListsDialog = ({
name="from_file"
value={FROM_FILE}
onChange={onValueChange}
checked={from_file === FROM_FILE}
checked={parseYesNo(state.from_file) === FROM_FILE}
/>
<FileField name="file" onChange={onValueChange} />
</Divider>
Expand Down

0 comments on commit 6fc3909

Please sign in to comment.