File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5959</template >
6060
6161<script >
62- import { api } from ' @/api'
62+ import { getAPI } from ' @/api'
6363
6464export 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 })
Original file line number Diff line number Diff 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 ({
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments