Pārlūkot izejas kodu

HUE-7744 [dashboard] Enable Ace Hue theme in the single line Ace editor

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
d1f2750a35

+ 1 - 0
desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako

@@ -780,6 +780,7 @@ from desktop.views import _ko
 
         var editor = ace.edit($element.find('.ace-editor')[0]);
         editor.$blockScrolling = Infinity;
+        editor.setTheme($.totalStorage('hue.ace.theme') || 'ace/theme/hue');
         self.ace(editor);
 
         if (params.autocomplete) {