Quellcode durchsuchen

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

Enrico Berti vor 8 Jahren
Ursprung
Commit
191475c

+ 3 - 1
desktop/core/src/desktop/templates/responsive.mako

@@ -700,8 +700,10 @@ ${ assist.assistPanel() }
           } else if (href.startsWith('/pig')){
             self.changeEditorType('pig');
             self.currentApp('editor');
-          } else if (href.startsWith('/dashboard')){
+          } else if (href.startsWith('/dashboard/embeddable')){
             self.currentApp('dashboard');
+          } else if (href.startsWith('/dashboard/admin/collections')){
+            self.currentApp('collections');
           } else if (href.startsWith('/oozie/editor/workflow/new')){
             self.currentApp('oozie_workflow');
           } else if (href.startsWith('/oozie/editor/coordinator/new')){

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/collections.mako

@@ -61,7 +61,7 @@ ${ commonheader(_('Search Indexes'), "indexer", user, request, "29px") | n,unico
 
 <div class="search-bar" style="height: 30px">
   <div class="pull-right">
-    <a class="btn importBtn" href="${ url('search:admin_collections') }" title="${ _('Collections') }" rel="tooltip" data-placement="bottom" data-bind="css: {'btn': true}">
+    <a class="btn importBtn" href="${ is_embeddable and "javascript: huePubSub.publish('open.link', '" + url('dashboard:admin_collections') + "')" or url('dashboard:admin_collections') }" title="${ _('Collections') }" rel="tooltip" data-placement="bottom" data-bind="css: {'btn': true}">
       <i class="fa fa-tags"></i> ${ _('Dashboards') }
     </a>
   </div>