mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Make Statistics, Dependencies, Dependants tabs closable and the user can add them back using the 'Add panel' option. Fixes #5091
This commit is contained in:
committed by
Akshay Joshi
parent
18f055fa5e
commit
73b6b95fbc
@@ -225,7 +225,6 @@ define('pgadmin.dashboard', [
|
||||
var dashboardPanel = pgBrowser.panels['dashboard'].panel;
|
||||
if (dashboardPanel) {
|
||||
var div = dashboardPanel.layout().scene().find('.pg-panel-content');
|
||||
|
||||
if (div) {
|
||||
var ajaxHook = function() {
|
||||
$.ajax({
|
||||
@@ -1100,7 +1099,13 @@ define('pgadmin.dashboard', [
|
||||
if(closed) {
|
||||
this.chartsDomObj && this.chartsDomObj.unmount();
|
||||
} else {
|
||||
var t = pgBrowser.tree,
|
||||
i = t.selected(),
|
||||
d = i && t.itemData(i),
|
||||
n = i && d && pgBrowser.Nodes[d._type];
|
||||
|
||||
this.chartsDomObj && this.chartsDomObj.setPageVisible(dashboardVisible);
|
||||
this.object_selected(i, d, n);
|
||||
}
|
||||
},
|
||||
can_take_action: function(m) {
|
||||
|
||||
Reference in New Issue
Block a user