Sha256: a07fee27244054abb9a00d7c255f2ba8cd49a803a2f1f348f53ad8dbddf5e039
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { translate as __ } from 'foremanReact/common/I18n'; import EmptyState from 'foremanReact/components/common/EmptyState'; import { foremanUrl, getManualURL } from 'foremanReact/common/helpers'; export const WelcomeEnv = ({ canCreate }) => { const action = canCreate && { title: __('Create Puppet Environment'), url: foremanUrl('/foreman_puppet/environments/new'), }; const description = ( <> <FormattedMessage id="puppetenv-welcome" defaultMessage={__( 'If you are planning to use Foreman as an external node classifier you should provide information about one or more environments.{newLine}This information is commonly imported from a pre-existing Puppet configuration by the use of the {puppetClasses}.' )} values={{ newLine: <br />, puppetClasses: ( <a target="_blank" href={getManualURL('4.2.2Classes')} rel="noreferrer" > {__('Puppet classes and environment importer')} </a> ), }} /> </> ); return ( <EmptyState icon="th" iconType="fa" header={__('Environments')} description={description} documentation={{ url: getManualURL('4.2.1Environments') }} action={action} /> ); }; WelcomeEnv.propTypes = { canCreate: PropTypes.bool, }; WelcomeEnv.defaultProps = { canCreate: false, }; export default WelcomeEnv;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-5.1.0 | webpack/src/Components/Environments/Welcome.js |