debian-mirror-gitlab/app/assets/javascripts/integrations/overrides/index.js
2022-03-02 08:16:31 +05:30

26 lines
502 B
JavaScript

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;
}
const { editPath, overridesPath } = el.dataset;
return new Vue({
el,
provide: {
editPath,
},
render(createElement) {
return createElement(IntegrationOverrides, {
props: {
overridesPath,
},
});
},
});
};