2021-01-03 14:25:43 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import UpdateSharedRunnersForm from './components/shared_runners_form.vue';
|
|
|
|
|
|
|
|
export default (containerId = 'update-shared-runners-form') => {
|
|
|
|
const containerEl = document.getElementById(containerId);
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
const {
|
|
|
|
updatePath,
|
|
|
|
sharedRunnersAvailability,
|
|
|
|
parentSharedRunnersAvailability,
|
|
|
|
runnerEnabled,
|
|
|
|
runnerDisabled,
|
|
|
|
runnerAllowOverride,
|
|
|
|
} = containerEl.dataset;
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
return new Vue({
|
|
|
|
el: containerEl,
|
2021-12-11 22:18:48 +05:30
|
|
|
provide: {
|
|
|
|
updatePath,
|
|
|
|
sharedRunnersAvailability,
|
|
|
|
parentSharedRunnersAvailability,
|
|
|
|
runnerEnabled,
|
|
|
|
runnerDisabled,
|
|
|
|
runnerAllowOverride,
|
|
|
|
},
|
2021-01-03 14:25:43 +05:30
|
|
|
render(createElement) {
|
2021-12-11 22:18:48 +05:30
|
|
|
return createElement(UpdateSharedRunnersForm);
|
2021-01-03 14:25:43 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|