mirror of https://github.com/portainer/portainer
fix(k8s/apps): edit url deployed app (#5652)
parent
e63732484a
commit
6d510c4f30
|
@ -118,4 +118,5 @@ export const KubernetesDeploymentTypes = Object.freeze({
|
||||||
GIT: 'git',
|
GIT: 'git',
|
||||||
CONTENT: 'content',
|
CONTENT: 'content',
|
||||||
APPLICATION_FORM: 'application form',
|
APPLICATION_FORM: 'application form',
|
||||||
|
URL: 'url',
|
||||||
});
|
});
|
||||||
|
|
|
@ -1079,10 +1079,14 @@ class KubernetesCreateApplicationController {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.application.ApplicationKind) {
|
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) {
|
if (this.application.StackId) {
|
||||||
this.stack = await this.StackService.stack(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);
|
this.stackFileContent = await this.StackService.getStackFile(this.application.StackId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue