Skip to content

Commit 7e3616a

Browse files
committed
UI demo: fix list vnf provider details by name
1 parent 2b5d7a5 commit 7e3616a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/AutogenView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ export default {
10671067
if (['listNetworks'].includes(this.apiName) && 'displaynetwork' in this.$route.query) {
10681068
params.displaynetwork = this.$route.query.displaynetwork
10691069
}
1070-
if (['listSSHKeyPairs'].includes(this.apiName)) {
1070+
if (['listSSHKeyPairs', 'vnfListProviders'].includes(this.apiName)) {
10711071
if (!this.$isValidUuid(params.id)) {
10721072
delete params.id
10731073
params.name = this.$route.params.id
@@ -1140,7 +1140,7 @@ export default {
11401140
break
11411141
}
11421142
1143-
if ('id' in this.$route.params && this.$route.params.id !== params.id) {
1143+
if ('id' in this.$route.params && this.$route.params.id !== params.id && this.$route.params.id !== params.name) {
11441144
console.log('DEBUG - Discarding API response as its `id` does not match the uuid on the browser path')
11451145
return
11461146
}

0 commit comments

Comments
 (0)