diff options
Diffstat (limited to 'app/assets/javascripts/work_items/components/work_item_links/index.js')
-rw-r--r-- | app/assets/javascripts/work_items/components/work_item_links/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/work_items/components/work_item_links/index.js b/app/assets/javascripts/work_items/components/work_item_links/index.js index 320a4a213e3..176f84f6c1a 100644 --- a/app/assets/javascripts/work_items/components/work_item_links/index.js +++ b/app/assets/javascripts/work_items/components/work_item_links/index.js @@ -1,9 +1,11 @@ import Vue from 'vue'; import VueApollo from 'vue-apollo'; +import { GlToast } from '@gitlab/ui'; import createDefaultClient from '~/lib/graphql'; import WorkItemLinks from './work_item_links.vue'; Vue.use(VueApollo); +Vue.use(GlToast); const apolloProvider = new VueApollo({ defaultClient: createDefaultClient(), @@ -19,6 +21,7 @@ export default function initWorkItemLinks() { if (!workItemLinksRoot) { return; } + // eslint-disable-next-line no-new new Vue({ el: workItemLinksRoot, @@ -27,6 +30,9 @@ export default function initWorkItemLinks() { components: { workItemLinks: WorkItemLinks, }, + provide: { + projectPath: workItemLinksRoot.dataset.projectPath, + }, render: (createElement) => createElement('work-item-links', { props: { |