diff options
Diffstat (limited to 'app/assets/javascripts/group_settings/mount_shared_runners.js')
-rw-r--r-- | app/assets/javascripts/group_settings/mount_shared_runners.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/app/assets/javascripts/group_settings/mount_shared_runners.js b/app/assets/javascripts/group_settings/mount_shared_runners.js index 44284204c41..27558e43d2b 100644 --- a/app/assets/javascripts/group_settings/mount_shared_runners.js +++ b/app/assets/javascripts/group_settings/mount_shared_runners.js @@ -4,11 +4,27 @@ import UpdateSharedRunnersForm from './components/shared_runners_form.vue'; export default (containerId = 'update-shared-runners-form') => { const containerEl = document.getElementById(containerId); + const { + updatePath, + sharedRunnersAvailability, + parentSharedRunnersAvailability, + runnerEnabled, + runnerDisabled, + runnerAllowOverride, + } = containerEl.dataset; + return new Vue({ el: containerEl, render(createElement) { return createElement(UpdateSharedRunnersForm, { - props: containerEl.dataset, + provide: { + updatePath, + sharedRunnersAvailability, + parentSharedRunnersAvailability, + runnerEnabled, + runnerDisabled, + runnerAllowOverride, + }, }); }, }); |