فهرست منبع

HUE-5967 [search] The indexes link in the dashboards page should open in responsive

Enrico Berti 8 سال پیش
والد
کامیت
5db4f048bd

+ 2 - 0
desktop/core/src/desktop/templates/responsive.mako

@@ -700,6 +700,8 @@ ${ assist.assistPanel() }
           } else if (href.startsWith('/pig')){
             self.changeEditorType('pig');
             self.currentApp('editor');
+          } else if (href.startsWith('/indexer')){
+            self.currentApp('indexes');
           } else if (href.startsWith('/dashboard/embeddable')){
             self.currentApp('dashboard');
           } else if (href.startsWith('/dashboard/admin/collections')){

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_admin_collections.mako

@@ -35,7 +35,7 @@
 <div class="search-bar" style="height: 30px">
   <div class="pull-right">
     % if user.has_hue_permission(action="access", app='indexer'):
-    <a class="btn importBtn" href="${ url('indexer:collections') }">
+    <a class="btn importBtn" href="${ is_embeddable and "javascript: huePubSub.publish('open.link', '" + url('indexer:collections') + "')" or url('indexer:collections') }" title="${ _('Indexes') }">
       <i class="fa fa-database"></i> ${ _('Indexes') }
     </a>
     % endif