Skip to content

Commit 75107b7

Browse files
UI changes for new api calls in CreateKubernetesCluster, KubernetesServiceTab
1 parent 512ea9d commit 75107b7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ui/src/views/compute/CreateKubernetesCluster.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ export default {
674674
forcks: true
675675
}
676676
this.templateLoading = true
677-
api('listTemplates', params).then(json => {
677+
getAPI('listTemplates', params).then(json => {
678678
var templates = json?.listtemplatesresponse?.template || []
679679
ckstemplates.push(...templates)
680680
}).finally(() => {
@@ -730,7 +730,7 @@ export default {
730730
}
731731
this.hypervisorLoading = true
732732
733-
api('listHypervisors', params).then(json => {
733+
getAPI('listHypervisors', params).then(json => {
734734
const listResponse = json.listhypervisorsresponse.hypervisor || []
735735
if (listResponse) {
736736
this.selectedZoneHypervisors = listResponse
@@ -747,7 +747,7 @@ export default {
747747
name: 'cloud.kubernetes.cluster.network.offering'
748748
}
749749
this.configLoading = true
750-
api('listConfigurations', params).then(json => {
750+
getAPI('listConfigurations', params).then(json => {
751751
if (json.listconfigurationsresponse.configuration !== null) {
752752
const config = json.listconfigurationsresponse.configuration[0]
753753
if (config && config.name === params.name) {
@@ -766,7 +766,7 @@ export default {
766766
name: offeringName
767767
}
768768
769-
api('listNetworkOfferings', args).then(json => {
769+
getAPI('listNetworkOfferings', args).then(json => {
770770
const listNetworkOfferings = json.listnetworkofferingsresponse.networkoffering || []
771771
resolve(listNetworkOfferings)
772772
this.cksNetworkOffering = listNetworkOfferings[0] || {}
@@ -779,13 +779,13 @@ export default {
779779
const params = {}
780780
params.zoneid = this.selectedZone.id
781781
params.isallocated = false
782-
api('listASNumbers', params).then(json => {
782+
getAPI('listASNumbers', params).then(json => {
783783
this.asNumbersZone = json.listasnumbersresponse.asnumber
784784
})
785785
},
786786
fetchCniConfigurations () {
787787
this.cniConfigLoading = true
788-
api('listCniConfiguration', {}).then(
788+
getAPI('listCniConfiguration', {}).then(
789789
response => {
790790
const listResponse = response.listcniconfigurationresponse.cniconfig || []
791791
if (listResponse) {
@@ -802,7 +802,7 @@ export default {
802802
}
803803
this.form.cniconfigurationid = id
804804
this.cniConfigParams = []
805-
api('listCniConfiguration', { id: id }).then(json => {
805+
getAPI('listCniConfiguration', { id: id }).then(json => {
806806
const resp = json?.listcniconfigurationresponse?.cniconfig || []
807807
if (resp) {
808808
var params = resp[0].params

ui/src/views/compute/KubernetesServiceTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export default {
465465
const params = {}
466466
params.name = 'cloud.kubernetes.etcd.node.start.port'
467467
var apiName = 'listConfigurations'
468-
api(apiName, params).then(json => {
468+
getAPI(apiName, params).then(json => {
469469
const configResponse = json.listconfigurationsresponse.configuration
470470
this.etcdSshPort = configResponse[0]?.value
471471
})

0 commit comments

Comments
 (0)