fix(config-creation): fix an issue setting config editor as read-only (#1634)

pull/1635/head
Anthony Lapenna 2018-02-06 14:23:08 +01:00 committed by GitHub
parent 23a565243a
commit 7365e69c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {