mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where Schema Diff and Debugger give a blank white panel.
refs #6398
This commit is contained in:
parent
48ca83f31d
commit
5d4c073730
@ -614,6 +614,7 @@ define([
|
|||||||
'frm_debugger', wcDocker.DOCK.STACKED, dashboardPanel[0]
|
'frm_debugger', wcDocker.DOCK.STACKED, dashboardPanel[0]
|
||||||
),
|
),
|
||||||
db_label = newTreeInfo.database.label;
|
db_label = newTreeInfo.database.label;
|
||||||
|
pgadminUtils.registerDetachEvent(panel);
|
||||||
|
|
||||||
if(data && data.data_obj && data.data_obj.db_name != newTreeInfo.database.label) {
|
if(data && data.data_obj && data.data_obj.db_name != newTreeInfo.database.label) {
|
||||||
db_label = data.data_obj.db_name;
|
db_label = data.data_obj.db_name;
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
define('pgadmin.schemadiff', [
|
define('pgadmin.schemadiff', [
|
||||||
'sources/gettext', 'sources/url_for', 'jquery', 'underscore',
|
'sources/gettext', 'sources/url_for', 'jquery', 'underscore',
|
||||||
'sources/pgadmin', 'sources/csrf', 'pgadmin.alertifyjs', 'pgadmin.browser.node',
|
'sources/pgadmin', 'sources/csrf', 'pgadmin.alertifyjs', 'sources/utils', 'pgadmin.browser.node',
|
||||||
], function(
|
], function(
|
||||||
gettext, url_for, $, _, pgAdmin, csrfToken, Alertify,
|
gettext, url_for, $, _, pgAdmin, csrfToken, Alertify, commonUtils,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
var wcDocker = window.wcDocker,
|
var wcDocker = window.wcDocker,
|
||||||
@ -119,6 +119,8 @@ define('pgadmin.schemadiff', [
|
|||||||
var propertiesPanel = pgBrowser.docker.findPanels('properties'),
|
var propertiesPanel = pgBrowser.docker.findPanels('properties'),
|
||||||
schemaDiffPanel = pgBrowser.docker.addPanel('frm_schemadiff', wcDocker.DOCK.STACKED, propertiesPanel[0]);
|
schemaDiffPanel = pgBrowser.docker.addPanel('frm_schemadiff', wcDocker.DOCK.STACKED, propertiesPanel[0]);
|
||||||
|
|
||||||
|
commonUtils.registerDetachEvent(schemaDiffPanel);
|
||||||
|
|
||||||
// Rename schema diff tab
|
// Rename schema diff tab
|
||||||
schemaDiffPanel.on(wcDocker.EVENT.RENAME, function(panel_data) {
|
schemaDiffPanel.on(wcDocker.EVENT.RENAME, function(panel_data) {
|
||||||
Alertify.prompt('', panel_data.$titleText[0].textContent,
|
Alertify.prompt('', panel_data.$titleText[0].textContent,
|
||||||
|
Loading…
Reference in New Issue
Block a user