Skip to content

Commit e3abc5d

Browse files
Apply suggestions from code review
Co-authored-by: Suresh Kumar Anaparti <[email protected]>
1 parent 601aeb5 commit e3abc5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/src/views/compute/KubernetesAddNodes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<script>
6868
import { ref, reactive, toRaw } from 'vue'
69-
import { getAPI } from '@/api'
69+
import { getAPI, postAPI } from '@/api'
7070
import TooltipLabel from '@/components/widgets/TooltipLabel'
7171
7272
export default {
@@ -172,7 +172,7 @@ export default {
172172
},
173173
addNodesToKubernetesCluster (params) {
174174
return new Promise((resolve, reject) => {
175-
getAPI('addNodesToKubernetesCluster', params).then(json => {
175+
postAPI('addNodesToKubernetesCluster', params).then(json => {
176176
const jobId = json.addnodestokubernetesclusterresponse.jobid
177177
return resolve(jobId)
178178
}).catch(error => {

ui/src/views/compute/KubernetesRemoveNodes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<script>
5656
import { ref, reactive, toRaw } from 'vue'
57-
import { getAPI } from '@/api'
57+
import { postAPI } from '@/api'
5858
import TooltipLabel from '@/components/widgets/TooltipLabel'
5959
6060
export default {
@@ -137,7 +137,7 @@ export default {
137137
},
138138
removeNodesFromKubernetesCluster (params) {
139139
return new Promise((resolve, reject) => {
140-
getAPI('removeNodesFromKubernetesCluster', params).then(json => {
140+
postAPI('removeNodesFromKubernetesCluster', params).then(json => {
141141
const jobId = json.removenodesfromkubernetesclusterresponse.jobid
142142
return resolve(jobId)
143143
}).catch(error => {

0 commit comments

Comments
 (0)