Browse Source

HUE-8113 [editor] Hide the dots menu on presentation mode

Enrico Berti 7 years ago
parent
commit
2992823084

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

@@ -301,6 +301,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
 
 
       <!-- ko template: { ifnot: editorMode() || isPresentationMode(), name: 'notebook-actions' }--><!-- /ko -->
       <!-- ko template: { ifnot: editorMode() || isPresentationMode(), name: 'notebook-actions' }--><!-- /ko -->
 
 
+      <!-- ko ifnot: isPresentationMode() -->
       <div class="dropdown pull-right margin-left-10">
       <div class="dropdown pull-right margin-left-10">
         <a class="btn" data-toggle="dropdown" href="javascript: void(0)">
         <a class="btn" data-toggle="dropdown" href="javascript: void(0)">
           <i class="fa fa-fw fa-ellipsis-v"></i>
           <i class="fa fa-fw fa-ellipsis-v"></i>
@@ -346,6 +347,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
           </li>
           </li>
         </ul>
         </ul>
       </div>
       </div>
+      <!-- /ko -->
     % endif
     % endif
   </div>
   </div>
 </script>
 </script>