Browse Source

HUE-7876 [presentation] Switch to presentation mode when opening a presentation query

Romain Rigaux 7 năm trước cách đây
mục cha
commit
dbdd4a883c

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -911,7 +911,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           if (self.currentApp() == 'editor' && $('#editorComponents').length) {
             var vm = ko.dataFor($('#editorComponents')[0]);
             if (vm.isPresentationMode()) {
-              vm.isPresentationMode(false);
+              vm.selectedNotebook().isPresentationMode(false);
             }
           }
 

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -2082,7 +2082,7 @@ var EditorViewModel = (function() {
         hueAnalytics.convert('editor', 'presentation');
       }
     });
-//    self.isPresentationMode(self.isPresentationModeDefault());
+    self.isPresentationMode(self.isPresentationModeDefault());
     self.presentationSnippets = ko.observable({});
 
     self.snippets = ko.observableArray();