Sha256: e5f8f501523ca594d7edde9f5ba7524432d90d12764085b3714777db21c4d923
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import { idsForInvocation } from '../PreupgradeReportsHelpers'; const FixAllButton = ({ preupgradeReports, postUrl, disabled, csrfToken }) => { const { hostIds, entryIds } = idsForInvocation(preupgradeReports); return ( <form action={postUrl} method="post"> <Button type="submit" disabled={disabled}> {__('Fix All')} </Button> <input type="hidden" name="authenticity_token" value={csrfToken} /> <input type="hidden" name="feature" value="leapp_remediation_plan" /> {hostIds.map(hostId => ( <input type="hidden" name="host_ids[]" key={hostId} value={hostId} /> ))} <input type="hidden" name="inputs[remediation_ids]" value={entryIds.join(',')} /> </form> ); }; FixAllButton.propTypes = { preupgradeReports: PropTypes.array.isRequired, postUrl: PropTypes.string.isRequired, disabled: PropTypes.bool.isRequired, csrfToken: PropTypes.string.isRequired, }; export default FixAllButton;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_leapp-0.0.6 | webpack/components/PreupgradeReports/components/FixAllButton.js |