debian-mirror-gitlab/app/assets/javascripts/group_settings/mount_shared_runners.js
2022-08-27 11:52:29 +05:30

30 lines
735 B
JavaScript

import Vue from 'vue';
import UpdateSharedRunnersForm from './components/shared_runners_form.vue';
export default (containerId = 'update-shared-runners-form') => {
const containerEl = document.getElementById(containerId);
const {
groupId,
sharedRunnersSetting,
parentSharedRunnersSetting,
runnerEnabledValue,
runnerDisabledValue,
runnerAllowOverrideValue,
} = containerEl.dataset;
return new Vue({
el: containerEl,
provide: {
groupId,
sharedRunnersSetting,
parentSharedRunnersSetting,
runnerEnabledValue,
runnerDisabledValue,
runnerAllowOverrideValue,
},
render(createElement) {
return createElement(UpdateSharedRunnersForm);
},
});
};