Sha256: d6b5c89d2efbf061f1d3d33581e75c528d5738f330a5163758401728d7199994
Contents?: true
Size: 901 Bytes
Versions: 27
Compression:
Stored size: 901 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import ForemanEmptyState from 'foremanReact/components/common/EmptyState'; import { foremanUrl } from 'foremanReact/common/helpers'; const EmptyState = props => { const action = { title: __('Create Rule'), url: foremanUrl('/discovery_rules/new'), }; const description = __( 'No Discovery Rules found in this context. Create Discovery Rules to perform automated provisioning on Discovered Hosts' ); const documentation = { url: props.docUrl, }; return ( <ForemanEmptyState header="Discovery Rules" description={description} icon="gavel" iconType="fa" documentation={documentation} action={action} /> ); }; EmptyState.propTypes = { docUrl: PropTypes.string.isRequired, }; export default EmptyState;
Version data entries
27 entries across 27 versions & 1 rubygems