Skip to content

Commit 20f667c

Browse files
committed
improve setup UI
1 parent 200de78 commit 20f667c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/components/setup/index.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,14 @@ users:
251251
dotenvFile += `${key}=${this.dotenv[key]}\n`
252252
}
253253
}
254-
return YAML.stringify(this.dotenv)
254+
return dotenvFile
255255
},
256256
actionValidation(): boolean | 'next' | 'prev' {
257257
if (this.kubeconfigValid && this.step === '1') {
258258
return 'prev'
259-
} else if (this.saveSuccess == 'ok' && this.step === '2') {
259+
} else if (this.saveSuccess != 'ok' && this.step === '2') {
260+
return 'next'
261+
}else if (this.saveSuccess == 'ok' && this.step === '2') {
260262
return false
261263
} else if (this.step === '3') {
262264
return 'next'
@@ -343,7 +345,8 @@ users:
343345
},
344346
async validateKubeconfig(): Promise<boolean> {
345347
if (this.kubeConfig === '') {
346-
this.kubeconfigError = 'kubeconfig is empty'
348+
//this.kubeconfigError = 'kubeconfig is empty'
349+
this.kubeconfigError = ''
347350
return false
348351
}
349352
if (this.kubeContext === '') {

0 commit comments

Comments
 (0)