diff --git a/app/kubernetes/views/deploy/deployController.js b/app/kubernetes/views/deploy/deployController.js index 28414cd24..4f783cbfc 100644 --- a/app/kubernetes/views/deploy/deployController.js +++ b/app/kubernetes/views/deploy/deployController.js @@ -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; diff --git a/app/portainer/views/stacks/create/createStackController.js b/app/portainer/views/stacks/create/createStackController.js index 23491d1fe..1cdf2f75f 100644 --- a/app/portainer/views/stacks/create/createStackController.js +++ b/app/portainer/views/stacks/create/createStackController.js @@ -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;