mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
UI: Fix hypervisor not selected by default when deploying VM from ISO (#6436)
* UI: Fix hypervisor not selected by default when deploying VM from ISO * Address comment
This commit is contained in:
parent
d45d257b9a
commit
aae0fae950
@ -180,6 +180,7 @@
|
||||
<a-form-item :label="$t('label.hypervisor')">
|
||||
<a-select
|
||||
v-model:value="form.hypervisor"
|
||||
:preFillContent="dataPreFill"
|
||||
:options="hypervisorSelectOptions"
|
||||
@change="value => hypervisor = value"
|
||||
showSearch
|
||||
@ -1974,7 +1975,9 @@ export default {
|
||||
this.options[name] = response
|
||||
|
||||
if (name === 'hypervisors') {
|
||||
this.hypervisor = response[0] && response[0].name ? response[0].name : null
|
||||
const hypervisorFromResponse = response[0] && response[0].name ? response[0].name : null
|
||||
this.dataPreFill.hypervisor = hypervisorFromResponse
|
||||
this.form.hypervisor = hypervisorFromResponse
|
||||
}
|
||||
|
||||
if (param.field) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user