Skip to content

Commit a710ff8

Browse files
authored
UI: Fix ISO Hypervisor selection (#11261)
1 parent 9d04970 commit a710ff8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ui/src/views/compute/DeployVM.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
@handle-image-search-filter="filters => fetchImages(filters)"
149149
@update-image="updateFieldValue"
150150
@update-disk-size="updateFieldValue"
151-
@change-iso-hypervisor="value => hypervisor = value" />
151+
@change-iso-hypervisor="value => form.hypervisor = value" />
152152
<a-card
153153
v-else
154154
:tabList="imageTypeList"

ui/src/views/compute/wizard/OsBasedImageSelection.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
v-model:value="localSelectedIsoHypervisor"
113113
:preFillContent="preFillContent"
114114
:options="isoHypervisorItems"
115-
@change="handleIsoHypervisorChange()"
115+
@change="handleIsoHypervisorChange"
116116
showSearch
117117
optionFilterProp="label"
118118
:filterOption="filterOption" />
@@ -325,8 +325,8 @@ export default {
325325
emitUpdateDiskSize (decorator, value) {
326326
this.$emit('update-disk-size', decorator, value)
327327
},
328-
handleIsoHypervisorChange () {
329-
this.$emit('change-iso-hypervisor', this.localIsoHypervisor)
328+
handleIsoHypervisorChange (hypervisor) {
329+
this.$emit('change-iso-hypervisor', hypervisor)
330330
}
331331
}
332332
}

ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</template>
6464

6565
<script>
66-
import { api } from '@/api'
66+
import { getAPI, postAPI } from '@/api'
6767
import { genericCompare } from '@/utils/sort.js'
6868
import OsLogo from '@/components/widgets/OsLogo'
6969
@@ -164,7 +164,7 @@ export default {
164164
params.directdownload = true
165165
}
166166
return new Promise((resolve, reject) => {
167-
api('registerTemplate', params).then(json => {
167+
postAPI('registerTemplate', params).then(json => {
168168
const result = json.registertemplateresponse.template[0]
169169
resolve(result)
170170
}).catch(error => {
@@ -225,7 +225,7 @@ export default {
225225
let osTypeId = this.defaultOsTypeId
226226
this.loading = true
227227
try {
228-
const json = await api('listOsTypes', { keyword: osName, filter: 'name,id' })
228+
const json = await getAPI('listOsTypes', { keyword: osName, filter: 'name,id' })
229229
if (json && json.listostypesresponse && json.listostypesresponse.ostype && json.listostypesresponse.ostype.length > 0) {
230230
osTypeId = json.listostypesresponse.ostype[0].id
231231
}

0 commit comments

Comments
 (0)