Skip to content

Commit

Permalink
fix(supported popover): RHICOMPL-1461 update docs link
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Kofink <akofink@redhat.com>
  • Loading branch information
akofink committed Feb 25, 2021
1 parent 84f676b commit 6ac050e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import propTypes from 'prop-types';
import { Popover, Alert } from '@patternfly/react-core';
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';

export const supportedConfigsLink = 'https://access.redhat.com/documentation/en-us/red_hat_insights/2020-10/' +
'html/assessing_and_monitoring_security_policy_compliance_of_rhel_systems/' +
'con-compl-assess-overview_compl-assess-overview#con-compl-assess-supported-configurations_compl-assess-overview';

const UnsupportedSSGVersion = ({ ssgVersion, style }) => {
const bodyContent = 'This system was using an incompatible version of the SSG at the time this report was generated.' +
' Assessment of rules failed/passed on this system is a best-guess effort and may not be accurate.';
const supportedConfigsLink = 'https://access.redhat.com/documentation/en-us/red_hat_insights/2020-10/' +
'html/assessing_and_monitoring_security_policy_compliance_of_rhel_systems/' +
'compl-assess-overview-con#compl-assess-supported-configurations-con';
const footerContent = <a target='_blank' rel='noopener noreferrer' href={ supportedConfigsLink }>Supported SSG versions</a>;

return <Alert
Expand Down
1 change: 1 addition & 0 deletions packages/inventory-compliance/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { default as SystemRulesTable, selectColumns as selectRulesTableColumns }
export { default as ComplianceRemediationButton } from './ComplianceRemediationButton';
export { default as ComplianceEmptyState } from './ComplianceEmptyState';
export { ChipBuilder, FilterBuilder, FilterConfigBuilder } from './Utilities';
export { supportedConfigsLink } from './PresentationalComponents/UnsupportedSSGVersion';

0 comments on commit 6ac050e

Please sign in to comment.