Sha256: 7fddf4891d30efc3335ad17b5bd86c714fb99728ed58c738e1d448134ab75fa7

Contents?: true

Size: 806 Bytes

Versions: 10

Compression:

Stored size: 806 Bytes

Contents

import componentRegistry from 'foremanReact/components/componentRegistry';
import injectReducer from 'foremanReact/redux/reducers/registerReducer';
import ReportJsonViewer from './components/ReportJsonViewer';
import AnsibleRolesSwitcher from './components/AnsibleRolesSwitcher';
import $ from 'jquery';

import reducer from './reducer';

componentRegistry.register({
  name: 'ReportJsonViewer',
  type: ReportJsonViewer,
});
componentRegistry.register({
  name: 'AnsibleRolesSwitcher',
  type: AnsibleRolesSwitcher,
});

injectReducer('foremanAnsible', reducer);

window.tfm.initAnsibleRoleSwitcher = () => {
  $(document).on('ContentLoad', evt => {
    tfm.reactMounter.mount(
      'AnsibleRolesSwitcher',
      '#ansible_roles_switcher',
      $('#ansible_roles_switcher').data('roles')
    );
  });
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_ansible-3.0.9 webpack/index.js
foreman_ansible-3.0.8 webpack/index.js
foreman_ansible-3.0.7 webpack/index.js
foreman_ansible-3.0.6 webpack/index.js
foreman_ansible-3.0.5 webpack/index.js
foreman_ansible-3.0.4 webpack/index.js
foreman_ansible-3.0.3 webpack/index.js
foreman_ansible-2.3.4 webpack/index.js
foreman_ansible-3.0.2 webpack/index.js
foreman_ansible-3.0.1 webpack/index.js