Fixed an issue where Schema Diff and Debugger give a blank white panel.

refs #6398
pull/55/head
Pradip Parkale 2021-07-06 18:56:21 +05:30 committed by Akshay Joshi
parent 48ca83f31d
commit 5d4c073730
2 changed files with 5 additions and 2 deletions

View File

@ -614,6 +614,7 @@ define([
'frm_debugger', wcDocker.DOCK.STACKED, dashboardPanel[0]
),
db_label = newTreeInfo.database.label;
pgadminUtils.registerDetachEvent(panel);
if(data && data.data_obj && data.data_obj.db_name != newTreeInfo.database.label) {
db_label = data.data_obj.db_name;

View File

@ -9,9 +9,9 @@
define('pgadmin.schemadiff', [
'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(
gettext, url_for, $, _, pgAdmin, csrfToken, Alertify,
gettext, url_for, $, _, pgAdmin, csrfToken, Alertify, commonUtils,
) {
var wcDocker = window.wcDocker,
@ -119,6 +119,8 @@ define('pgadmin.schemadiff', [
var propertiesPanel = pgBrowser.docker.findPanels('properties'),
schemaDiffPanel = pgBrowser.docker.addPanel('frm_schemadiff', wcDocker.DOCK.STACKED, propertiesPanel[0]);
commonUtils.registerDetachEvent(schemaDiffPanel);
// Rename schema diff tab
schemaDiffPanel.on(wcDocker.EVENT.RENAME, function(panel_data) {
Alertify.prompt('', panel_data.$titleText[0].textContent,