Skip to content

Commit 807f783

Browse files
committed
update api calls
1 parent 9f75e09 commit 807f783

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ export default {
23032303
},
23042304
addNetrisProvider (args) {
23052305
return new Promise((resolve, reject) => {
2306-
api('addNetrisProvider', {}, 'POST', args).then(json => {
2306+
postAPI('addNetrisProvider', args).then(json => {
23072307
resolve()
23082308
}).catch(error => {
23092309
const message = error.response.headers['x-description']

ui/src/views/network/IpAddressesTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export default {
336336
},
337337
fetchZones () {
338338
return new Promise((resolve, reject) => {
339-
api('listZones', {
339+
getAPI('listZones', {
340340
id: this.resource.zoneid
341341
}).then(json => {
342342
this.zoneExtNetProvider = json?.listzonesresponse?.zone?.[0]?.provider || null

ui/src/views/network/LoadBalancing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ export default {
10751075
},
10761076
fetchZone () {
10771077
this.zoneloading = true
1078-
api('listZones', {
1078+
getAPI('listZones', {
10791079
id: this.resource.zoneid
10801080
}).then(response => {
10811081
this.lbProvider = response?.listzonesresponse?.zone?.[0]?.provider || null

ui/src/views/network/VpcTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ export default {
679679
},
680680
fetchPublicIpAddress () {
681681
this.modals.vpnGatewayLoading = true
682-
api('listPublicIpAddresses', {
682+
getAPI('listPublicIpAddresses', {
683683
vpcid: this.resource.id,
684684
listAll: true
685685
}).then(json => {

ui/src/views/network/VpnDetails.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default {
190190
})
191191
if (this.resource.vpcid) {
192192
this.vpnGatewayEnabled = true
193-
api('listVpnGateways', {
193+
getAPI('listVpnGateways', {
194194
vpcid: this.resource.vpcid,
195195
listAll: true
196196
}).then(response => {
@@ -302,7 +302,7 @@ export default {
302302
vpcid: this.resource.vpcid,
303303
ipaddressid: this.resource.id
304304
}
305-
api('createVpnGateway', params).then(response => {
305+
postAPI('createVpnGateway', params).then(response => {
306306
this.$pollJob({
307307
jobId: response.createvpngatewayresponse.jobid,
308308
successMessage: this.$t('message.success.add.vpn.gateway'),
@@ -339,7 +339,7 @@ export default {
339339
this.isSubmitted = true
340340
this.parentToggleLoading()
341341
this.deleteVpnGateway = false
342-
api('deleteVpnGateway', {
342+
postAPI('deleteVpnGateway', {
343343
id: this.vpnGateway.id
344344
}).then(response => {
345345
this.$pollJob({

0 commit comments

Comments
 (0)