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

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