From 2bb64397935ad3a2b19792ab86b6f7088cd826f1 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 23 Dec 2022 14:17:54 +0530 Subject: [PATCH] ui: fix suitable shared network not showing while import (#7016) In import VM form, shared network is not showing when it is in Setup state which should not be the case. This PR fixes that. Signed-off-by: Abhishek Kumar --- ui/src/views/compute/wizard/MultiNetworkSelection.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/compute/wizard/MultiNetworkSelection.vue b/ui/src/views/compute/wizard/MultiNetworkSelection.vue index 5404a32479c..227ea34eb14 100644 --- a/ui/src/views/compute/wizard/MultiNetworkSelection.vue +++ b/ui/src/views/compute/wizard/MultiNetworkSelection.vue @@ -193,7 +193,7 @@ export default { for (const item of this.items) { this.validNetworks[item.id] = this.networks if (this.filterUnimplementedNetworks) { - this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => x.state === 'Implemented') + this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => (x.state === 'Implemented' || (x.state === 'Setup' && x.type === 'Shared'))) } if (this.filterMatchKey) { this.validNetworks[item.id] = this.validNetworks[item.id].filter(x => x[this.filterMatchKey] === item[this.filterMatchKey])