瀏覽代碼

HUE-8461 [report] Reopen the right assist when leaving report mode

Enrico Berti 7 年之前
父節點
當前提交
d218478
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

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

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