浏览代码

HUE-8461 [report] Execute dom unload code just on report mode

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

+ 2 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -5018,9 +5018,11 @@ $(document).ready(function () {
 
   huePubSub.subscribe('app.dom.unload', function (app) {
     if (app === 'dashboard') {
+      %if is_report:
       if (ApiHelper.getInstance().getFromTotalStorage('assist', 'right_assist_panel_visible', false)) {
         huePubSub.publish('right.assist.show');
       }
+      %endif
       $gridster.destroy();
     }
   }, 'dashboard');