debian-mirror-gitlab/app/assets/javascripts/ci/runner/project_runners/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
443 B
JavaScript
Raw Normal View History

2023-03-17 16:20:25 +05:30
import Vue from 'vue';
import ProjectRunnersApp from './project_runners_app.vue';
export const initProjectRunners = (selector = '#js-project-runners') => {
const el = document.querySelector(selector);
if (!el) {
return null;
}
const { projectFullPath } = el.dataset;
return new Vue({
el,
render(h) {
return h(ProjectRunnersApp, {
props: {
projectFullPath,
},
});
},
});
};