Skip to content

Commit 408e8c0

Browse files
Merge branch '4.22'
2 parents e929f20 + 53c98c3 commit 408e8c0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ui/src/components/view/DomainDeleteConfirm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</template>
6060

6161
<script>
62-
import { api } from '@/api'
62+
import { getAPI } from '@/api'
6363
6464
export default {
6565
name: 'DomainDeleteConfirm',
@@ -104,7 +104,7 @@ export default {
104104
async fetchDomainImpact () {
105105
this.loading = true
106106
try {
107-
const accResp = await api('listAccounts', {
107+
const accResp = await getAPI('listAccounts', {
108108
domainid: this.domain.id,
109109
listall: true
110110
})
@@ -115,7 +115,7 @@ export default {
115115
? accResp.listaccountsresponse.account
116116
: []
117117
118-
const vmResp = await api('listVirtualMachines', {
118+
const vmResp = await getAPI('listVirtualMachines', {
119119
domainid: this.domain.id,
120120
listall: true
121121
})

ui/src/views/iam/DomainView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default {
334334
const domain = this.deleteDomainResource
335335
const params = { id: domain.id, cleanup: true }
336336
337-
api('deleteDomain', params).then(json => {
337+
callAPI('deleteDomain', params).then(json => {
338338
const jobId = json.deletedomainresponse.jobid
339339
340340
this.$pollJob({

ui/src/views/image/UpdateTemplate.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default {
260260
userdatapolicy: null,
261261
userdatapolicylist: {},
262262
architectureTypes: {},
263-
originalOstypeid: null
263+
originalOstypeid: null,
264264
detailsFields: [],
265265
details: {}
266266
}
@@ -511,7 +511,7 @@ export default {
511511
params.id = this.resource.id
512512
params.templatefilter = 'all'
513513
514-
api('listTemplates', params).then(response => {
514+
getAPI('listTemplates', params).then(response => {
515515
if (response?.listtemplatesresponse?.template?.length > 0) {
516516
this.details = response.listtemplatesresponse.template[0].details
517517
if (this.details) {

0 commit comments

Comments
 (0)