From 3177713ab639de718211d665330bd10304de3a1b Mon Sep 17 00:00:00 2001 From: Ming-Hay <157658916+minghay@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:21:44 -0800 Subject: [PATCH] fix: Update for routing between other pipelines (#1305) Co-authored-by: Vonny Jap --- app/components/pipeline/header/component.js | 5 ++--- app/components/pipeline/header/template.hbs | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/components/pipeline/header/component.js b/app/components/pipeline/header/component.js index e8fef6c0c..050bc5744 100644 --- a/app/components/pipeline/header/component.js +++ b/app/components/pipeline/header/component.js @@ -68,9 +68,8 @@ export default class PipelineHeaderComponent extends Component { pipeline.id !== pipelineId && scm === s && repositoryId === r ); }) - .map((pipeline, i) => ({ - index: i, - url: `/pipelines/${pipeline.id}`, + .map(pipeline => ({ + url: `/v2/pipelines/${pipeline.id}`, branchAndRootDir: pipeline.scmRepo.rootDir ? `${pipeline.scmRepo.branch}:${pipeline.scmRepo.rootDir}` : pipeline.scmRepo.branch diff --git a/app/components/pipeline/header/template.hbs b/app/components/pipeline/header/template.hbs index e0e69c046..dff7a8e76 100644 --- a/app/components/pipeline/header/template.hbs +++ b/app/components/pipeline/header/template.hbs @@ -56,12 +56,9 @@ {{#each (await this.sameRepoPipeline) as |pipe|}} - + {{svg-jar "link" class="img"}} {{pipe.branchAndRootDir}} - + {{else}}