Commit 494f16f1 authored by Scott Hampton's avatar Scott Hampton

Fix artifacts dropdown for other pipelines tables

There are a few pages that use the pipelines table component that need
to also provide the artifacts endpoint so that they can lazy load the
artifacts properly.

- Commits pipelines tab
- Merge request show pipelines tab
- New merge request pipelines tab

Changelog: fixed
parent bb218f4f
......@@ -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