Skip to content

Commit 177f048

Browse files
authored
UI: Fix protocol reset after changing provider on Add Primary Storage (#6243)
1 parent 63a9da9 commit 177f048

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ui/src/views/infra/AddPrimaryStorage.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ export default {
514514
} else {
515515
this.protocols = ['nfs']
516516
}
517-
this.form.protocol = this.protocols[0]
517+
if (!value) {
518+
this.form.protocol = this.protocols[0]
519+
}
518520
},
519521
nfsURL (server, path) {
520522
var url
@@ -642,7 +644,7 @@ export default {
642644
this.protocols = ['custom']
643645
this.form.protocol = 'custom'
644646
} else {
645-
this.fetchHypervisor(null)
647+
this.fetchHypervisor(value)
646648
}
647649
},
648650
closeModal () {

0 commit comments

Comments
 (0)