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

pull/10807/head
matias-portainer 2023-12-07 09:42:18 -03:00 committed by GitHub
parent 4e8b371fb7
commit 56022ab7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;