Skip to content

Commit

Permalink
Merge pull request #1299 from sarahd93/detailslinks_gsa8
Browse files Browse the repository at this point in the history
Fix detailslinks in AllSecInfo
  • Loading branch information
bjoernricks authored Apr 23, 2019
2 parents 2d22485 + 5193fdf commit cd513e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Cleanup get_report function in gsad [#1263](https://github.com/greenbone/gsa/pull/1263)

### Fixed
- Fix detailslinks in AllSecInfo [#1299](https://github.com/greenbone/gsa/pull/1299)
- Only run libmicrohttp in debug mode if gsad build type is debug [#1295](https://github.com/greenbone/gsa/pull/1295)
- Fix dialog can be moved outside browser frame [#1294](https://github.com/greenbone/gsa/pull/1294)
- Fix permission description [#1292](https://github.com/greenbone/gsa/pull/1292)
Expand Down
5 changes: 4 additions & 1 deletion gsa/src/web/pages/secinfo/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import TableRow from '../../components/table/row.js';

import SecinfoDetails from './details.js';
import Row from './row.js';
import {normalizeType} from 'gmp/utils/entitytype.js';

const Header = ({
actionsColumn,
Expand Down Expand Up @@ -108,12 +109,14 @@ Header.propTypes = {
onSortChange: PropTypes.func,
};

const infoType = entity => normalizeType(secInfoType(entity));

export default createEntitiesTable({
body: false,
emptyTitle: _l('No SecInfo Information available'),
row: Row,
header: withEntitiesHeader(true)(Header),
rowDetails: withRowDetails(secInfoType)(SecinfoDetails),
rowDetails: withRowDetails(infoType)(SecinfoDetails),
footer: createEntitiesFooter({
span: 10,
download: 'secinfo.xml',
Expand Down

0 comments on commit cd513e3

Please sign in to comment.