Explorar o código

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

Enrico Berti %!s(int64=8) %!d(string=hai) anos
pai
achega
c5380025f2

+ 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(),