This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.17 by this push:
new aae0fae950 UI: Fix hypervisor not selected by default when deploying
VM from ISO (#6436)
aae0fae950 is described below
commit aae0fae9508ad06cd93642b58da2fb28ceae1e05
Author: Nicolas Vazquez <[email protected]>
AuthorDate: Thu Jun 9 07:30:20 2022 -0300
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
---
ui/src/views/compute/DeployVM.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ui/src/views/compute/DeployVM.vue
b/ui/src/views/compute/DeployVM.vue
index 2fe7c5599a..312860f993 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -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) {