diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-03 21:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-03 21:08:43 +0300 |
commit | 03717bbc9fa4112a0cbc48f613f416f2aa1c6cbb (patch) | |
tree | a7b2d1c4175d725538e0b72e6f5aec33dc9b3d4d /app/assets/javascripts/merge_request_tabs.js | |
parent | 27a5080c34c64a84219d855d652b994c5e344a0a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index 237e8c68be4..b927654a3f5 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -1,6 +1,8 @@ /* eslint-disable class-methods-use-this */ import $ from 'jquery'; import Vue from 'vue'; +import VueApollo from 'vue-apollo'; +import createDefaultClient from '~/lib/graphql'; import { createAlert } from '~/alert'; import { getCookie, isMetaClick, parseBoolean, scrollToElement } from '~/lib/utils/common_utils'; import { parseUrlPathname } from '~/lib/utils/url_utility'; @@ -16,6 +18,12 @@ import { isInVueNoteablePage } from './lib/utils/dom_utils'; import { __, s__ } from './locale'; import syntaxHighlight from './syntax_highlight'; +Vue.use(VueApollo); + +const apolloProvider = new VueApollo({ + defaultClient: createDefaultClient(), +}); + // MergeRequestTabs // // Handles persisting and restoring the current tab selection and lazily-loading @@ -94,10 +102,13 @@ function mountPipelines() { components: { CommitPipelinesTable: () => import('~/commit/pipelines/pipelines_table.vue'), }, + apolloProvider, provide: { artifactsEndpoint: pipelineTableViewEl.dataset.artifactsEndpoint, artifactsEndpointPlaceholder: pipelineTableViewEl.dataset.artifactsEndpointPlaceholder, targetProjectFullPath: mrWidgetData?.target_project_full_path || '', + fullPath: pipelineTableViewEl.dataset.fullPath, + manualActionsLimit: 50, }, render(createElement) { return createElement('commit-pipelines-table', { |