浏览代码

HUE-8460 [editor] Bring back 'export to dashboard'

Enrico Berti 7 年之前
父节点
当前提交
b6172a5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      desktop/core/src/desktop/templates/common_notebook_ko_components.mako

+ 5 - 0
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -217,6 +217,11 @@ except ImportError, e:
             <!-- ko template: { name: 'app-icon-template', data: { icon: 'report' } } --><!-- /ko --> ${ _('Report') }
           </a>
         </li>
+        <li>
+          <a class="download" href="javascript:void(0)" data-bind="click: function() { saveTarget('dashboard'); trySaveResults(); }" title="${ _('Visually explore the result') }">
+            <!-- ko template: { name: 'app-icon-template', data: { icon: 'dashboard' } } --><!-- /ko --> ${ _('Dashboard') }
+          </a>
+        </li>
         % endif
         <li>
           <a class="download" href="javascript:void(0)" data-bind="click: function() { savePath(''); $('#saveResultsModal' + snippet.id()).modal('show'); }" title="${ _('Export the result into a file, an index, a new table...') }">