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 () => { ...@@ -27,6 +27,10 @@ export default () => {
if (pipelineTableViewEl.dataset.disableInitialization === undefined) { if (pipelineTableViewEl.dataset.disableInitialization === undefined) {
const table = new Vue({ const table = new Vue({
provide: {
artifactsEndpoint: pipelineTableViewEl.dataset.artifactsEndpoint,
artifactsEndpointPlaceholder: pipelineTableViewEl.dataset.artifactsEndpointPlaceholder,
},
render(createElement) { render(createElement) {
return createElement(CommitPipelinesTable, { return createElement(CommitPipelinesTable, {
props: { props: {
......
...@@ -355,6 +355,8 @@ export default class MergeRequestTabs { ...@@ -355,6 +355,8 @@ export default class MergeRequestTabs {
this.commitPipelinesTable = new Vue({ this.commitPipelinesTable = new Vue({
provide: { provide: {
artifactsEndpoint: pipelineTableViewEl.dataset.artifactsEndpoint,
artifactsEndpointPlaceholder: pipelineTableViewEl.dataset.artifactsEndpointPlaceholder,
targetProjectFullPath: mrWidgetData?.target_project_full_path || '', targetProjectFullPath: mrWidgetData?.target_project_full_path || '',
}, },
render(createElement) { render(createElement) {
......
- disable_initialization = local_assigns.fetch(:disable_initialization, false) - disable_initialization = local_assigns.fetch(:disable_initialization, false)
- artifacts_endpoint_placeholder = ':pipeline_artifacts_id'
#commit-pipeline-table-view{ data: { disable_initialization: disable_initialization, #commit-pipeline-table-view{ data: { disable_initialization: disable_initialization,
endpoint: endpoint, endpoint: endpoint,
"empty-state-svg-path" => image_path('illustrations/pipelines_empty.svg'), "empty-state-svg-path" => image_path('illustrations/pipelines_empty.svg'),
"error-state-svg-path" => image_path('illustrations/pipelines_failed.svg'), "error-state-svg-path" => image_path('illustrations/pipelines_failed.svg'),
"project-id": @project.id, "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