Browse Source

HUE-5239 [assist] Don’t trigger search when switching tabs unless search is active

Johan Ahlen 9 years ago
parent
commit
b6be60ca72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -1946,7 +1946,7 @@ from metadata.conf import has_navigator
 
         self.visiblePanel.subscribe(function(newValue) {
           self.apiHelper.setInTotalStorage('assist', 'last.open.panel', newValue.type);
-          if (self.navigatorEnabled()) {
+          if (self.navigatorEnabled() && self.searchActive()) {
             lastQuery = 'refresh';
             self.performSearch();
           }