فهرست منبع

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

Enrico Berti 7 سال پیش
والد
کامیت
a2fe26d
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');