Skip to content

Commit e2e6302

Browse files
committed
PR11468: api->getAPI in UI
1 parent 7f0573d commit e2e6302

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/views/network/LoadBalancing.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,15 +1167,15 @@ export default {
11671167
this.sslcerts.loading = true
11681168
this.sslcerts.data = []
11691169
// First get the account id
1170-
api('listAccounts', {
1170+
getAPI('listAccounts', {
11711171
name: this.resource.account,
11721172
domainid: this.resource.domainid
11731173
}).then(json => {
11741174
const accounts = json.listaccountsresponse.account || []
11751175
if (accounts.length > 0) {
11761176
// Now fetch all the ssl certs for this account
11771177
this.currentAccountId = accounts[0].id
1178-
api('listSslCerts', {
1178+
getAPI('listSslCerts', {
11791179
accountid: this.currentAccountId
11801180
}).then(json => {
11811181
if (json.listsslcertsresponse.sslcert && json.listsslcertsresponse.sslcert.length > 0) {
@@ -1197,7 +1197,7 @@ export default {
11971197
}
11981198
},
11991199
getCurrentlyAssignedSslCert () {
1200-
api('listSslCerts', {
1200+
getAPI('listSslCerts', {
12011201
accountid: this.currentAccountId,
12021202
lbruleid: this.selectedRule.id
12031203
}).then(json => {
@@ -1224,7 +1224,7 @@ export default {
12241224
},
12251225
addSslCert (lbRuleId, certId) {
12261226
this.disableSslAddDeleteButtons()
1227-
api('assignCertToLoadBalancer', {
1227+
getAPI('assignCertToLoadBalancer', {
12281228
lbruleid: lbRuleId,
12291229
certid: certId,
12301230
forced: true
@@ -1254,7 +1254,7 @@ export default {
12541254
},
12551255
removeSslFromLbRule () {
12561256
this.disableSslAddDeleteButtons()
1257-
api('removeCertFromLoadBalancer', {
1257+
getAPI('removeCertFromLoadBalancer', {
12581258
lbruleid: this.selectedRule.id
12591259
}).then(response => {
12601260
this.$pollJob({

0 commit comments

Comments
 (0)