mirror of https://github.com/portainer/portainer
fix(stacks): allow editing custom templates before stack deployment EE-6380 (#10713)
parent
90a160e83f
commit
f0aa0554f8
|
@ -194,7 +194,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;
|
||||
|
|
|
@ -306,7 +306,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