You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2022/04/11 18:09:52 UTC
[cloudstack] branch main updated: UI: Fix protocol reset after changing provider on Add Primary Storage (#6243)
This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 177f04839c2 UI: Fix protocol reset after changing provider on Add Primary Storage (#6243)
177f04839c2 is described below
commit 177f04839c2a598cc7ca9a94985cb4b80827575d
Author: Nicolas Vazquez <ni...@gmail.com>
AuthorDate: Mon Apr 11 15:09:45 2022 -0300
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 () {