kiali link pr feedback

This commit is contained in:
Nancy Butler 2020-09-16 11:32:46 -07:00
parent a31de3d7b7
commit cd47532c47
2 changed files with 4 additions and 2 deletions

View File

@ -92,7 +92,7 @@ export default {
proxyUrl() {
return (proto, port) => {
const view = this.linkFor('view');
const idx = view.indexOf(`/${ this.metadata.name }`);
const idx = view.lastIndexOf(`/`);
return `${ view.slice(0, idx) }/${ proto }:${ this.metadata.name }:${ port }/proxy`;
};

View File

@ -9,7 +9,9 @@ export default {
middleware: InstallRedirect(NAME, CHART_NAME),
async fetch() {
this.kialiService = await this.$store.dispatch('cluster/find', { type: SERVICE, id: 'istio-system/kiali' });
try {
this.kialiService = await this.$store.dispatch('cluster/find', { type: SERVICE, id: 'istio-system/kiali' });
} catch {}
},
data() {