1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-29 18:29:44 +02:00

updated API response to get IsComposeFormat and show appropriate text.

This commit is contained in:
Felix Han 2021-08-31 15:39:44 +12:00
parent 47c32df77a
commit b5c59c8982
3 changed files with 24 additions and 11 deletions

View file

@ -1024,9 +1024,8 @@ class KubernetesCreateApplicationController {
if (this.application.ApplicationKind) {
this.state.appType = this.KubernetesDeploymentTypes[this.application.ApplicationKind.toUpperCase()];
if (this.application.StackId) {
if (this.application.ApplicationKind === this.KubernetesDeploymentTypes.GIT) {
this.stack = await this.StackService.stack(this.application.StackId);
} else if (this.application.ApplicationKind === this.KubernetesDeploymentTypes.CONTENT) {
this.stack = await this.StackService.stack(this.application.StackId);
if (this.application.ApplicationKind === this.KubernetesDeploymentTypes.CONTENT) {
this.stackFileContent = await this.StackService.getStackFile(this.application.StackId);
}
}