From 074d0d8a6c06f188c4eb315f9aeb0a9fcbce542c Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Mon, 9 Sep 2024 14:16:32 +0200 Subject: [PATCH] add network domain edit for shared networks to UI --- ui/src/views/network/UpdateNetwork.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/src/views/network/UpdateNetwork.vue b/ui/src/views/network/UpdateNetwork.vue index 42c91073ef22..84c0514adc9c 100644 --- a/ui/src/views/network/UpdateNetwork.vue +++ b/ui/src/views/network/UpdateNetwork.vue @@ -141,7 +141,7 @@ - + @@ -274,7 +274,7 @@ export default { ip6dns1: this.resource.ip6dns1, ip6dns2: this.resource.ip6dns2 } - if (this.isUpdatingIsolatedNetwork) { + if (this.hasNetworkDomain) { this.resourceValues.networkdomain = this.resource.networkdomain } for (var field in this.resourceValues) { @@ -289,6 +289,12 @@ export default { isUpdatingIsolatedNetwork () { return this.resource && this.resource.type === 'Isolated' }, + isUpdatingSharedNetwork () { + return this.resource && this.resource.type === 'Shared' + }, + hasNetworkDomain () { + return this.isUpdatingIsolatedNetwork || this.isUpdatingSharedNetwork + }, selectedNetworkOfferingSupportsDns () { if (this.networkOffering) { const services = this.networkOffering?.service || []