Commit b7a620b3 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'sh-fix-commit-pipelines-table' into 'master'

Fix artifacts dropdown for other pipelines tables

See merge request gitlab-org/gitlab!61045
parents f3e5ea4c 494f16f1
......@@ -27,6 +27,10 @@ export default () => {
if (pipelineTableViewEl.dataset.disableInitialization === undefined) {
const table = new Vue({
provide: {
artifactsEndpoint: pipelineTableViewEl.dataset.artifactsEndpoint,
artifactsEndpointPlaceholder: pipelineTableViewEl.dataset.artifactsEndpointPlaceholder,
},
render(createElement) {
return createElement(CommitPipelinesTable, {
props: {
......
......@@ -355,6 +355,8 @@ export default class MergeRequestTabs {
this.commitPipelinesTable = new Vue({
provide: {
artifactsEndpoint: pipelineTableViewEl.dataset.artifactsEndpoint,
artifactsEndpointPlaceholder: pipelineTableViewEl.dataset.artifactsEndpointPlaceholder,
targetProjectFullPath: mrWidgetData?.target_project_full_path || '',
},
render(createElement) {
......
- disable_initialization = local_assigns.fetch(:disable_initialization, false)
- artifacts_endpoint_placeholder = ':pipeline_artifacts_id'
#commit-pipeline-table-view{ data: { disable_initialization: disable_initialization,
endpoint: endpoint,
"empty-state-svg-path" => image_path('illustrations/pipelines_empty.svg'),
"error-state-svg-path" => image_path('illustrations/pipelines_failed.svg'),
"project-id": @project.id,
"artifacts-endpoint" => downloadable_artifacts_project_pipeline_path(@project, artifacts_endpoint_placeholder, format: :json),
"artifacts-endpoint-placeholder" => artifacts_endpoint_placeholder,
} }
---
title: Fix artifacts dropdown for merge request and commits pipelines tables
merge_request: 61045
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment