Преглед изворни кода

HUE-7096 [presentation] Add readOnly to the editors when in presentation mode

Enrico Berti пре 8 година
родитељ
комит
c538002
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1131,6 +1131,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
         onBlur: saveTemporarySnippet,
         highlightedRange: result.statement_range,
         useNewAutocompleter: $root.useNewAutocompleter,
+        readOnly: $root.isPresentationMode(),
         aceOptions: {
           showLineNumbers: $root.editorMode(),
           showGutter: $root.editorMode(),