debian-mirror-gitlab/app/assets/javascripts/integrations/overrides/index.js

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

27 lines
502 B
JavaScript
Raw Normal View History

2021-10-27 15:23:28 +05:30
import Vue from 'vue';
import IntegrationOverrides from './components/integration_overrides.vue';
export default () => {
const el = document.querySelector('.js-vue-integration-overrides');
if (!el) {
return null;
}
2022-03-02 08:16:31 +05:30
const { editPath, overridesPath } = el.dataset;
2021-10-27 15:23:28 +05:30
return new Vue({
el,
2022-03-02 08:16:31 +05:30
provide: {
editPath,
},
2021-10-27 15:23:28 +05:30
render(createElement) {
return createElement(IntegrationOverrides, {
props: {
overridesPath,
},
});
},
});
};