This is an automated email from the ASF dual-hosted git repository.

sureshanaparti 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 a710ff8c6db UI: Fix ISO Hypervisor selection (#11261)
a710ff8c6db is described below

commit a710ff8c6dbac9aa15f6336cd70fc36e7337e083
Author: Vishesh <[email protected]>
AuthorDate: Wed Jul 23 13:07:02 2025 +0530

    UI: Fix ISO Hypervisor selection (#11261)
---
 ui/src/views/compute/DeployVM.vue                      | 2 +-
 ui/src/views/compute/wizard/OsBasedImageSelection.vue  | 6 +++---
 ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ui/src/views/compute/DeployVM.vue 
b/ui/src/views/compute/DeployVM.vue
index 16ff8066489..ac98f35d806 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -148,7 +148,7 @@
                       @handle-image-search-filter="filters => 
fetchImages(filters)"
                       @update-image="updateFieldValue"
                       @update-disk-size="updateFieldValue"
-                      @change-iso-hypervisor="value => hypervisor = value" />
+                      @change-iso-hypervisor="value => form.hypervisor = 
value" />
                     <a-card
                       v-else
                       :tabList="imageTypeList"
diff --git a/ui/src/views/compute/wizard/OsBasedImageSelection.vue 
b/ui/src/views/compute/wizard/OsBasedImageSelection.vue
index 57fb4b355ac..ca157384a9a 100644
--- a/ui/src/views/compute/wizard/OsBasedImageSelection.vue
+++ b/ui/src/views/compute/wizard/OsBasedImageSelection.vue
@@ -112,7 +112,7 @@
           v-model:value="localSelectedIsoHypervisor"
           :preFillContent="preFillContent"
           :options="isoHypervisorItems"
-          @change="handleIsoHypervisorChange()"
+          @change="handleIsoHypervisorChange"
           showSearch
           optionFilterProp="label"
           :filterOption="filterOption" />
@@ -325,8 +325,8 @@ export default {
     emitUpdateDiskSize (decorator, value) {
       this.$emit('update-disk-size', decorator, value)
     },
-    handleIsoHypervisorChange () {
-      this.$emit('change-iso-hypervisor', this.localIsoHypervisor)
+    handleIsoHypervisorChange (hypervisor) {
+      this.$emit('change-iso-hypervisor', hypervisor)
     }
   }
 }
diff --git a/ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue 
b/ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue
index 28fd4b95047..0d94fc5d3b1 100644
--- a/ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue
+++ b/ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue
@@ -63,7 +63,7 @@
   </template>
 
 <script>
-import { api } from '@/api'
+import { getAPI, postAPI } from '@/api'
 import { genericCompare } from '@/utils/sort.js'
 import OsLogo from '@/components/widgets/OsLogo'
 
@@ -164,7 +164,7 @@ export default {
         params.directdownload = true
       }
       return new Promise((resolve, reject) => {
-        api('registerTemplate', params).then(json => {
+        postAPI('registerTemplate', params).then(json => {
           const result = json.registertemplateresponse.template[0]
           resolve(result)
         }).catch(error => {
@@ -225,7 +225,7 @@ export default {
       let osTypeId = this.defaultOsTypeId
       this.loading = true
       try {
-        const json = await api('listOsTypes', { keyword: osName, filter: 
'name,id' })
+        const json = await getAPI('listOsTypes', { keyword: osName, filter: 
'name,id' })
         if (json && json.listostypesresponse && 
json.listostypesresponse.ostype && json.listostypesresponse.ostype.length > 0) {
           osTypeId = json.listostypesresponse.ostype[0].id
         }

Reply via email to