diff --git a/app/kubernetes/views/deploy/deployController.js b/app/kubernetes/views/deploy/deployController.js index 382b399b8..d6eb84474 100644 --- a/app/kubernetes/views/deploy/deployController.js +++ b/app/kubernetes/views/deploy/deployController.js @@ -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; diff --git a/app/portainer/views/stacks/create/createStackController.js b/app/portainer/views/stacks/create/createStackController.js index 30ca24938..93532b81c 100644 --- a/app/portainer/views/stacks/create/createStackController.js +++ b/app/portainer/views/stacks/create/createStackController.js @@ -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;