Revision 901fe896
Added by Ondřej Pražák over 7 years ago
webpack/assets/javascripts/react_app/common/MountingService.js | ||
---|---|---|
import React from 'react';
|
||
import StatisticsChartsList from '../components/charts/StatisticsChartsList';
|
||
import PowerStatusContainer from '../components/hosts/PowerStatusContainer';
|
||
import ReactDOM from 'react-dom';
|
||
|
||
export function mount(component, selector, data) {
|
||
... | ... | |
StatisticsChartsList: {
|
||
type: StatisticsChartsList,
|
||
markup: <StatisticsChartsList data={data}/>
|
||
},
|
||
PowerStatusContainer: {
|
||
type: PowerStatusContainer,
|
||
markup: <PowerStatusContainer url={data.url} id={data.id}/>
|
||
}
|
||
};
|
||
|
Also available in: Unified diff
Fixes #14688 - Power status visible on hosts index page