mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
fix(k8s/apps): edit url deployed app (#5653)
This commit is contained in:
parent
ec3233fb09
commit
cad530ec04
2 changed files with 7 additions and 2 deletions
|
@ -1078,10 +1078,14 @@ class KubernetesCreateApplicationController {
|
|||
);
|
||||
|
||||
if (this.application.ApplicationKind) {
|
||||
this.state.appType = this.KubernetesDeploymentTypes[this.application.ApplicationKind.toUpperCase()];
|
||||
this.state.appType = KubernetesDeploymentTypes[this.application.ApplicationKind.toUpperCase()];
|
||||
if (this.application.ApplicationKind === KubernetesDeploymentTypes.URL) {
|
||||
this.state.appType = KubernetesDeploymentTypes.CONTENT;
|
||||
}
|
||||
|
||||
if (this.application.StackId) {
|
||||
this.stack = await this.StackService.stack(this.application.StackId);
|
||||
if (this.application.ApplicationKind === this.KubernetesDeploymentTypes.CONTENT) {
|
||||
if (this.state.appType === KubernetesDeploymentTypes.CONTENT) {
|
||||
this.stackFileContent = await this.StackService.getStackFile(this.application.StackId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue