فهرست منبع

HUE-3727 [editor] Use the new hueLink binding to open query directory

Romain Rigaux 8 سال پیش
والد
کامیت
13cc91bcd5
1فایلهای تغییر یافته به همراه3 افزوده شده و 10 حذف شده
  1. 3 10
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 3 - 10
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -349,16 +349,9 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
             <a title="${ _('This is a history query') }"><i class="fa fa-fw fa-history"></i></a>
           </li>
           <li data-bind="visible: directoryUuid" style="display: none" class="no-horiz-padding muted">
-            <!-- ko if: IS_HUE_4 -->
-              <a title="${ _('Open directory of this query') }" data-bind="click: function() { huePubSub.publish('open.link', '/home?uuid=' + directoryUuid()) }"
-                class="pointer inactive-action" href="javascript:void(0)"><i class="fa fa-fw fa-folder-o"></i>
-              </a>
-            <!-- /ko -->
-            <!-- ko if: ! IS_HUE_4 -->
-              <a title="${ _('Open directory of this query') }" data-bind="attr: { 'href': '/home?uuid=' + directoryUuid() }"
-                class="pointer inactive-action"><i class="fa fa-fw fa-folder-o"></i>
-              </a>
-            <!-- /ko -->
+            <a title="${ _('Open directory of this query') }" data-bind="hueLink: '/home?uuid=' + directoryUuid()"
+              class="pointer inactive-action" href="javascript:void(0)"><i class="fa fa-fw fa-folder-o"></i>
+            </a>
           </li>
           <li data-bind="visible: parentSavedQueryUuid" style="display: none" class="no-horiz-padding muted">
             <a title="${ _('Click to open original saved query') }" data-bind="click: function() { $root.openNotebook(parentSavedQueryUuid()) }" class="pointer inactive-action">