mirror of https://github.com/portainer/portainer
fix(stacks): allow editing custom templates before stack deployment EE-6380 (#10712)
parent
4e8b371fb7
commit
56022ab7b1
|
@ -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…
Reference in New Issue