Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/views/compute/DeployVM.vue
Original file line numberDiff line numberDiff line change
Expand Up@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions ui/src/views/compute/wizard/OsBasedImageSelection.vue
Original file line numberDiff line numberDiff line change
Expand Up@@ -112,7 +112,7 @@
v-model:value="localSelectedIsoHypervisor"
:preFillContent="preFillContent"
:options="isoHypervisorItems"
@change="handleIsoHypervisorChange()"
@change="handleIsoHypervisorChange"
showSearch
optionFilterProp="label"
:filterOption="filterOption" />
Expand DownExpand Up@@ -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)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue
Original file line numberDiff line numberDiff line change
Expand Up@@ -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'

Expand DownExpand Up@@ -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 => {
Expand DownExpand Up@@ -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
}
Expand Down
Loading