Skip to content

Commit

Permalink
Merge pull request #420 from appuio/default-zone-url-key
Browse files Browse the repository at this point in the history
🩹 use 'console' as default key for the console URL if non is provided…
  • Loading branch information
corvus-ch authored Jan 4, 2023
2 parents 01e7e7d + 8b0b45f commit a8a8f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/zones/zone/zone-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ZoneDetailComponent {
consoleUrlKey;

constructor(private appConfigService: AppConfigService) {
this.consoleUrlKey = this.appConfigService.getConfiguration().zones.consoleUrlKey;
this.consoleUrlKey = this.appConfigService.getConfiguration()?.zones?.consoleUrlKey || 'console';
}

switchToCodeMode(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"kubernetesAPI": "Kubernetes API",
"oauth": "API Token"
},
"consoleUrlKey": "consoleUrl"
"consoleUrlKey": "console"
}
}

0 comments on commit a8a8f4e

Please sign in to comment.