Sha256: 75729f57fc6f8adebc69ff14a0649b74e5e26156e9969d8f8d7424cd557cee11
Contents?: true
Size: 955 Bytes
Versions: 3
Compression:
Stored size: 955 Bytes
Contents
import { registerReducer } from 'foremanReact/common/MountingService'; import { registerColumns } from 'foremanReact/components/HostsIndex/Columns/core'; import { translate as __ } from 'foremanReact/common/I18n'; import reducers from './src/reducers'; import { registerFills } from './src/Extends/Fills'; import { registerLegacy } from './legacy'; // register reducers registerReducer('puppet', reducers); // add fills registerFills(); // TODO: the checkForUnavailablePuppetclasses is very nasty registerLegacy(); // register columns for React hosts index page const puppetHostsIndexColumns = [ { columnName: 'environment', title: __('Puppet env'), isSorted: true, wrapper: hostDetails => hostDetails.environment_name, weight: 2700, }, ]; puppetHostsIndexColumns.forEach(column => { column.tableName = 'hosts'; column.categoryName = 'Puppet'; column.categoryKey = 'puppet'; }); registerColumns(puppetHostsIndexColumns);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-8.1.0 | webpack/global_index.js |
foreman_puppet-8.0.0 | webpack/global_index.js |
foreman_puppet-7.0.0 | webpack/global_index.js |