Эх сурвалжийг харах

HUE-6242 [home] Saved documents in Editor point to filtered list of documents in home

Romain Rigaux 8 жил өмнө
parent
commit
975a7a1

+ 8 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -269,9 +269,16 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
         </a>
         <!-- /ko -->
 
-        <a class="btn" data-bind="hueLink: '${ url('notebook:notebooks') }?type=' + editorType(), attr: { 'title':  editorMode() ? '${ _('Queries') }' : '${ _('Notebooks') }'  }" rel="tooltip" data-placement="bottom">
+        <!-- ko if: IS_HUE_4 -->
+        <a class="btn" data-bind="hueLink: '/home?type=' + (editorMode() ? 'query-' : '') + editorType(), attr: { 'title': editorMode() ? '${ _('Queries') }' : '${ _('Notebooks') }'  }" rel="tooltip" data-placement="bottom">
           <i class="fa fa-tags"></i>
         </a>
+        <!-- /ko -->
+        <!-- ko ifnot: IS_HUE_4 -->
+        <a class="btn" data-bind="hueLink: '${ url('notebook:notebook') }?type=' + editorType(), attr: { 'title': editorMode() ? '${ _('Queries') }' : '${ _('Notebooks') }'  }" rel="tooltip" data-placement="bottom">
+          <i class="fa fa-tags"></i>
+        </a>
+        <!-- /ko -->
 
         <a class="btn pointer" title="${ _('Context') }" rel="tooltip" data-placement="bottom" data-bind="css: {'active': $root.isContextPanelVisible }, click: function() { $root.isContextPanelVisible(!$root.isContextPanelVisible()); }">
           <i class="fa fa-cogs"></i>