소스 검색

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

Enrico Berti 8 년 전
부모
커밋
c08ea55
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 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 -->