Sha256: 47a38d13999ed64f33c4bbc7d85f3ff39b56e9f0121e7881e2e1c2ae099ee03c
Contents?: true
Size: 824 Bytes
Versions: 21
Compression:
Stored size: 824 Bytes
Contents
import $ from 'jquery'; import componentRegistry from 'foremanReact/components/componentRegistry'; import injectReducer from 'foremanReact/redux/reducers/registerReducer'; import ReportJsonViewer from './components/ReportJsonViewer'; import AnsibleRolesSwitcher from './components/AnsibleRolesSwitcher'; import reducer from './reducer'; const { tfm } = window; componentRegistry.register({ name: 'ReportJsonViewer', type: ReportJsonViewer, }); componentRegistry.register({ name: 'AnsibleRolesSwitcher', type: AnsibleRolesSwitcher, }); injectReducer('foremanAnsible', reducer); tfm.initAnsibleRoleSwitcher = () => { $(document).on('ContentLoad', evt => { tfm.reactMounter.mount( 'AnsibleRolesSwitcher', '#ansible_roles_switcher', $('#ansible_roles_switcher').data('roles') ); }); };
Version data entries
21 entries across 21 versions & 1 rubygems