Sha256: 8640a7bbd95306191f084fe4bdadb0f95cf49dc212f5f6d1fd96c154bacbf954
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
import React from 'react'; import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill'; import InventoryAutoUploadSwitcher from './ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload'; import NewHostDetailsTab from './InsightsHostDetailsTab/NewHostDetailsTab'; import { InsightsTotalRiskChartWrapper } from './InsightsHostDetailsTab/InsightsTotalRiskChartWrapper'; import { isNotRhelHost } from './ForemanRhCloudHelpers'; const fills = [ { slot: 'katello-manage-manifest-form', name: 'InventoryAutoUpload', component: () => <InventoryAutoUploadSwitcher />, weight: 50, }, { slot: 'host-details-page-tabs', name: 'Insights', component: props => <NewHostDetailsTab {...props} />, weight: 400, metadata: { hideTab: isNotRhelHost, }, }, { slot: 'host-overview-cards', name: 'insights-total-risk-chart', component: props => <InsightsTotalRiskChartWrapper {...props} />, weight: 2800, }, ]; export const registerFills = () => { fills.forEach( ({ slot, name, component: Component, weight, metadata }, index) => addGlobalFill( slot, name, <Component key={`rh-cloud-fill-${index}`} />, weight, metadata ) ); };
Version data entries
4 entries across 4 versions & 1 rubygems