From 177f04839c2a598cc7ca9a94985cb4b80827575d Mon Sep 17 00:00:00 2001 From: Nicolas Vazquez Date: Mon, 11 Apr 2022 15:09:45 -0300 Subject: [PATCH] UI: Fix protocol reset after changing provider on Add Primary Storage (#6243) --- ui/src/views/infra/AddPrimaryStorage.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/views/infra/AddPrimaryStorage.vue b/ui/src/views/infra/AddPrimaryStorage.vue index c80f1de0cee..79f81075be0 100644 --- a/ui/src/views/infra/AddPrimaryStorage.vue +++ b/ui/src/views/infra/AddPrimaryStorage.vue @@ -514,7 +514,9 @@ export default { } else { this.protocols = ['nfs'] } - this.form.protocol = this.protocols[0] + if (!value) { + this.form.protocol = this.protocols[0] + } }, nfsURL (server, path) { var url @@ -642,7 +644,7 @@ export default { this.protocols = ['custom'] this.form.protocol = 'custom' } else { - this.fetchHypervisor(null) + this.fetchHypervisor(value) } }, closeModal () {