Skip to content

Commit

Permalink
fix: Update for routing between other pipelines (#1305)
Browse files Browse the repository at this point in the history
Co-authored-by: Vonny Jap <[email protected]>
  • Loading branch information
minghay and VonnyJap authored Dec 19, 2024
1 parent 5aa2b26 commit 3177713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app/components/pipeline/header/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions app/components/pipeline/header/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@
<dd.menu as |ddm|>
{{#each (await this.sameRepoPipeline) as |pipe|}}
<ddm.item>
<LinkTo
@route="v2.pipeline"
@model={{pipe.id}}
>
<a href={{pipe.url}}>
{{svg-jar "link" class="img"}} {{pipe.branchAndRootDir}}
</LinkTo>
</a>
</ddm.item>
{{else}}
<span>
Expand Down

0 comments on commit 3177713

Please sign in to comment.