gitlab-org--gitlab-foss/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

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,
},
});
},
});
};