2020-10-08 15:08:17 +00:00
|
|
|
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-10-21 00:12:27 +00:00
|
|
|
const {
|
2022-07-28 09:10:54 +00:00
|
|
|
groupId,
|
2022-05-04 15:09:12 +00:00
|
|
|
sharedRunnersSetting,
|
|
|
|
parentSharedRunnersSetting,
|
|
|
|
runnerEnabledValue,
|
|
|
|
runnerDisabledValue,
|
|
|
|
runnerAllowOverrideValue,
|
2021-10-21 00:12:27 +00:00
|
|
|
} = containerEl.dataset;
|
|
|
|
|
2020-10-08 15:08:17 +00:00
|
|
|
return new Vue({
|
|
|
|
el: containerEl,
|
2021-10-22 21:09:56 +00:00
|
|
|
provide: {
|
2022-07-28 09:10:54 +00:00
|
|
|
groupId,
|
2022-05-04 15:09:12 +00:00
|
|
|
sharedRunnersSetting,
|
|
|
|
parentSharedRunnersSetting,
|
|
|
|
runnerEnabledValue,
|
|
|
|
runnerDisabledValue,
|
|
|
|
runnerAllowOverrideValue,
|
2021-10-22 21:09:56 +00:00
|
|
|
},
|
2020-10-08 15:08:17 +00:00
|
|
|
render(createElement) {
|
2021-10-22 21:09:56 +00:00
|
|
|
return createElement(UpdateSharedRunnersForm);
|
2020-10-08 15:08:17 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|