Skip to content

Commit b590b74

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ui/src/views/iam/SSLCertificateTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export default {
382382
if (formValues.certchain) {
383383
params.certchain = formValues.certchain
384384
}
385-
api('uploadSslCert', {}, 'POST', params).then(json => {
385+
postAPI('uploadSslCert', params).then(json => {
386386
this.$notification.success({
387387
message: this.$t('message.success.upload.ssl.cert')
388388
})

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)