Ensure that ajax request for Dashboard, Statistics, Dependencies, and Dependents

should not be raised until the panel will be in focus.

refs #5091
This commit is contained in:
Aditya Toshniwal 2021-02-09 15:31:26 +05:30 committed by Akshay Joshi
parent 5372467569
commit 617440e1db

View File

@ -200,9 +200,9 @@ define(
if (eventName == 'panelClosed') {
/* Pass the closed flag also */
module.toggleVisibility.call(module, [false, true]);
module.toggleVisibility.call(module, false, true);
} else if (eventName == 'panelVisibilityChanged') {
module.toggleVisibility.call(module, [pgBrowser.docker.findPanels(this._type)[0].isVisible()]);
module.toggleVisibility.call(module, pgBrowser.docker.findPanels(this._type)[0].isVisible(), false);
}
},