fix(stacks): allow editing custom templates before stack deployment EE-6380 (#10712)

pull/10807/head
matias-portainer 12 months ago committed by GitHub
parent 4e8b371fb7
commit 56022ab7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -213,7 +213,7 @@ class KubernetesDeployController {
this.state.templateContent = await this.CustomTemplateService.customTemplateFile(templateId, template.GitConfig !== null);
this.onChangeFileContent(this.state.templateContent);
this.state.isEditorReadOnly = true;
this.state.isEditorReadOnly = false;
} catch (err) {
this.state.templateLoadFailed = true;
throw err;

@ -305,7 +305,7 @@ angular
$scope.state.templateContent = await this.CustomTemplateService.customTemplateFile(templateId, template.GitConfig !== null);
onChangeFileContent($scope.state.templateContent);
$scope.state.isEditorReadOnly = true;
$scope.state.isEditorReadOnly = false;
} catch (err) {
$scope.state.templateLoadFailed = true;
throw err;

Loading…
Cancel
Save