Skip to content

Commit 512ea9d

Browse files
UI changes for new api calls
1 parent 7c7f03a commit 512ea9d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

ui/src/components/view/InfoCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ export default {
10711071
fetchOsCategoryAndIcon () {
10721072
const osId = this.resource.guestosid || this.resource.ostypeid
10731073
if (osId && 'listOsTypes' in this.$store.getters.apis) {
1074-
api('listOsTypes', { id: osId }).then(json => {
1074+
getAPI('listOsTypes', { id: osId }).then(json => {
10751075
this.osCategoryId = json?.listostypesresponse?.ostype?.[0]?.oscategoryid || null
10761076
if (this.osCategoryId) {
10771077
this.fetchResourceIcon(this.osCategoryId, 'guestoscategory')

ui/src/components/view/SearchView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ export default {
10321032
},
10331033
fetchOsCategories (searchKeyword) {
10341034
return new Promise((resolve, reject) => {
1035-
api('listOsCategories', { showicon: true, keyword: searchKeyword }).then(json => {
1035+
getAPI('listOsCategories', { showicon: true, keyword: searchKeyword }).then(json => {
10361036
const osCategories = json.listoscategoriesresponse.oscategory
10371037
resolve({
10381038
type: 'oscategoryid',

ui/src/views/compute/ReinstallVm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default {
308308
featured: true,
309309
showicon: true
310310
}
311-
api('listOsCategories', params).then((response) => {
311+
getAPI('listOsCategories', params).then((response) => {
312312
this.options.guestOsCategories = response?.listoscategoriesresponse?.oscategory || []
313313
if (this.showUserCategoryForModernImageSelection) {
314314
const userCategory = {

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ export default {
571571
this.data.stopped = json?.listvirtualmachinesresponse?.count
572572
})
573573
if (this.isLeaseFeatureEnabled) {
574-
api('listVirtualMachines', { leased: true, listall: true, details: 'min', page: 1, pagesize: 1 }).then(json => {
574+
getAPI('listVirtualMachines', { leased: true, listall: true, details: 'min', page: 1, pagesize: 1 }).then(json => {
575575
this.loading = false
576576
this.data.leasedinstances = json?.listvirtualmachinesresponse?.count
577577
if (!this.data.leasedinstances) {

ui/src/views/image/IsoZones.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ export default {
539539
if (!needed) {
540540
return
541541
}
542-
api('listOsTypes', { id: this.resource.ostypeid }).then(json => {
542+
getAPI('listOsTypes', { id: this.resource.ostypeid }).then(json => {
543543
this.osCategoryId = json?.listostypesresponse?.ostype?.[0]?.oscategoryid || null
544544
})
545545
},

ui/src/views/image/TemplateZones.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ export default {
607607
if (!needed) {
608608
return
609609
}
610-
api('listOsTypes', { id: this.resource.ostypeid }).then(json => {
610+
getAPI('listOsTypes', { id: this.resource.ostypeid }).then(json => {
611611
this.osCategoryId = json?.listostypesresponse?.ostype?.[0]?.oscategoryid || null
612612
})
613613
},

0 commit comments

Comments
 (0)