Browse Source

HUE-7743 [editor] Don't show the query name and description in embedded mode

Johan Ahlen 7 years ago
parent
commit
f0c1912

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

@@ -308,6 +308,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
               ${ _("Scheduling on") }
             </a>
           </li>
+          % if not IS_EMBEDDED.get():
           <li class="query-name no-horiz-padding skip-width-calculation">
             <a href="javascript:void(0)">
               <div class="notebook-name-desc" data-bind="editable: name, editableOptions: { inputclass: 'notebook-name-input', enabled: true, placement: 'bottom', emptytext: '${_ko('Add a name...')}', tpl: '<input type=\'text\' maxlength=\'255\'>' }"></div>
@@ -318,6 +319,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
               <div class="notebook-name-desc" data-bind="editable: description, editableOptions: { type: 'textarea', enabled: true, placement: 'bottom', emptytext: '${_ko('Add a description...')}' }"></div>
             </a>
           </li>
+          % endif
           <!-- /ko -->
         </ul>
       </div>