1
0
Fork 0
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:
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

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