webpack/index.js in foreman_ansible-2.3.6 vs webpack/index.js in foreman_ansible-3.0.0

- old
+ new

@@ -1,4 +1,17 @@ import componentRegistry from 'foremanReact/components/componentRegistry'; +import injectReducer from 'foremanReact/redux/reducers/registerReducer'; import ReportJsonViewer from './components/ReportJsonViewer'; +import AnsibleRolesSwitcher from './components/AnsibleRolesSwitcher'; -componentRegistry.register({ name: 'ReportJsonViewer', type: ReportJsonViewer }); +import reducer from './reducer'; + +componentRegistry.register({ + name: 'ReportJsonViewer', + type: ReportJsonViewer, +}); +componentRegistry.register({ + name: 'AnsibleRolesSwitcher', + type: AnsibleRolesSwitcher, +}); + +injectReducer('foremanAnsible', reducer);