File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
client/src/components/apps Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments