Skip to content

Commit e639ce6

Browse files
authored
Merge pull request #258 from kubero-dev/fix/breadcrumb-link-on-newe-apps
Fix / Breadcrumb link on new apps
2 parents 817c1a5 + de42383 commit e639ce6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

client/src/components/apps/new.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,17 +1011,17 @@ export default {
10111011
{
10121012
text: 'PIPELINE:'+this.pipeline,
10131013
disabled: false,
1014-
href: '#/pipeline/'+this.pipeline+'/apps',
1014+
href: `#/pipeline/${this.pipeline}/apps`,
10151015
},
10161016
{
10171017
text: 'PHASE:'+this.phase,
10181018
disabled: false,
1019-
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}/detail`,
1019+
href: this.getAppBreadcrumbLink(),
10201020
},
10211021
{
10221022
text: 'APP:'+this.app,
10231023
disabled: false,
1024-
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}/detail`,
1024+
href: this.getAppBreadcrumbLink(),
10251025
}
10261026
],
10271027
advanced: false,
@@ -1290,6 +1290,13 @@ export default {
12901290
breadcrumbs: () => import('../breadcrumbs.vue'),
12911291
},
12921292
methods: {
1293+
getAppBreadcrumbLink() {
1294+
if (this.app == 'new') {
1295+
return `#/pipeline/${this.pipeline}/apps`;
1296+
} else {
1297+
return `#/pipeline/${this.pipeline}/${this.phase}/${this.app}/detail`;
1298+
}
1299+
},
12931300
loadClusterIssuers(){
12941301
axios.get('/api/config/clusterissuers').then(response => {
12951302
this.letsecryptClusterIssuer = response.data.id;

0 commit comments

Comments
 (0)