mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow the user to close the dashboard panel. Fixes #2506
This commit is contained in:
committed by
Dave Page
parent
c65158312d
commit
a87ee6d059
@@ -377,7 +377,7 @@ define([
|
||||
newWin.document.title = grid_title;
|
||||
});
|
||||
} else {
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('dashboard');
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('properties');
|
||||
var dataGridPanel = pgBrowser.docker.addPanel('frm_datagrid', wcDocker.DOCK.STACKED, dashboardPanel[0]);
|
||||
|
||||
// Set panel title and icon
|
||||
@@ -493,7 +493,7 @@ define([
|
||||
/* On successfully initialization find the dashboard panel,
|
||||
* create new panel and add it to the dashboard panel.
|
||||
*/
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('dashboard');
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('properties');
|
||||
var queryToolPanel = pgBrowser.docker.addPanel('frm_datagrid', wcDocker.DOCK.STACKED, dashboardPanel[0]);
|
||||
|
||||
// Set panel title and icon
|
||||
|
@@ -562,7 +562,7 @@ define([
|
||||
});
|
||||
|
||||
// Create the debugger panel as per the data received from user input dialog.
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('dashboard'),
|
||||
var dashboardPanel = pgBrowser.docker.findPanels('properties'),
|
||||
panel = pgBrowser.docker.addPanel(
|
||||
'frm_debugger', wcDocker.DOCK.STACKED, dashboardPanel[0]
|
||||
);
|
||||
|
Reference in New Issue
Block a user