UI: Fix protocol reset after changing provider on Add Primary Storage (#6243)

This commit is contained in:
Nicolas Vazquez 2022-04-11 15:09:45 -03:00 committed by GitHub
parent 63a9da9548
commit 177f04839c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,7 +514,9 @@ export default {
} else { } else {
this.protocols = ['nfs'] this.protocols = ['nfs']
} }
this.form.protocol = this.protocols[0] if (!value) {
this.form.protocol = this.protocols[0]
}
}, },
nfsURL (server, path) { nfsURL (server, path) {
var url var url
@ -642,7 +644,7 @@ export default {
this.protocols = ['custom'] this.protocols = ['custom']
this.form.protocol = 'custom' this.form.protocol = 'custom'
} else { } else {
this.fetchHypervisor(null) this.fetchHypervisor(value)
} }
}, },
closeModal () { closeModal () {