Skip to content

Commit f4d3042

Browse files
Add displaynetwork parameter in listnetworks when id exists
1 parent 899b09d commit f4d3042

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ui/src/components/view/ListView.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
<router-link :to="{ path: $route.path + '/' + record.uuid, query: { zoneid: $route.query.zoneid } }" v-else-if="record.uuid && $route.query.zoneid">{{ $t(text.toLowerCase()) }}</router-link>
8787
<router-link :to="{ path: $route.path }" v-else>{{ $t(text.toLowerCase()) }}</router-link>
8888
</span>
89+
<span v-else-if="$route.path.startsWith('/guestnetwork') && record.id && record.displaynetwork === false">
90+
<router-link :to="{ path: $route.path + '/' + record.id, query: { displaynetwork: false } }" v-if="record.id">{{ $t(text.toLowerCase()) }}</router-link>
91+
</span>
8992
<span v-else>
9093
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id">{{ text }}</router-link>
9194
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ text }}</router-link>

ui/src/views/AutogenView.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,9 @@ export default {
915915
this.loading = true
916916
if (this.$route.params && this.$route.params.id) {
917917
params.id = this.$route.params.id
918+
if (['listNetworks'].includes(this.apiName) && 'displaynetwork' in this.$route.query) {
919+
params.displaynetwork = this.$route.query.displaynetwork
920+
}
918921
if (['listSSHKeyPairs'].includes(this.apiName)) {
919922
if (!this.$isValidUuid(params.id)) {
920923
delete params.id

0 commit comments

Comments
 (0)