Jelajahi Sumber

HUE-7157 [presentation] Remove title bar if the notebook has no name or description

Enrico Berti 8 tahun lalu
induk
melakukan
c08ea55

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

@@ -362,9 +362,11 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
     </a>
 
     <!-- ko if: $root.selectedNotebook() -->
+      <!-- ko if: $root.selectedNotebook().name() || $root.selectedNotebook().description() -->
       <h2 class="margin-left-30 margin-right-10 inline padding-left-5" data-bind="text: $root.selectedNotebook().name"></h2>
       <h2 class="muted inline" data-bind="text: $root.selectedNotebook().description"></h2>
       <div class="clearfix"></div>
+      <!-- /ko -->
 
       <div class="margin-left-30 margin-top-10 padding-left-5 margin-bottom-20">
       <!-- ko template: { name: 'notebook-actions' }--><!-- /ko -->