mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(config-creation): fix an issue setting config editor as read-only (#1634)
This commit is contained in:
parent
23a565243a
commit
7365e69c59
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@ angular.module('portainer.app')
|
|||
var service = {};
|
||||
|
||||
service.applyCodeMirrorOnElement = function(element, yamlLint, readOnly) {
|
||||
var options = codeMirrorGenericOptions;
|
||||
var options = angular.copy(codeMirrorGenericOptions);
|
||||
|
||||
if (yamlLint) {
|
||||
options = codeMirrorYAMLOptions;
|
||||
_.assign(options, codeMirrorYAMLOptions);
|
||||
}
|
||||
|
||||
if (readOnly) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue