diff --git a/docs/en_US/release_notes_4_25.rst b/docs/en_US/release_notes_4_25.rst index a66368a09..c2f41889f 100644 --- a/docs/en_US/release_notes_4_25.rst +++ b/docs/en_US/release_notes_4_25.rst @@ -32,4 +32,5 @@ Bug fixes | `Issue #5632 `_ - Ensure that the user will be able to modify the start value of the Identity column. | `Issue #5646 `_ - Ensure that RLS Policy node should be searchable using search object. | `Issue #5708 `_ - Correct TLS certificate filename in the container deployment docs. -| `Issue #5710 `_ - Fixed an issue when comparing the table with a trigger throwing error in schema diff. \ No newline at end of file +| `Issue #5710 `_ - Fixed an issue when comparing the table with a trigger throwing error in schema diff. +| `Issue #5716 `_ - Fixed an issue where ajax call continues to fire even after disconnect the database server. \ No newline at end of file diff --git a/web/pgadmin/dashboard/static/js/ChartsDOM.jsx b/web/pgadmin/dashboard/static/js/ChartsDOM.jsx index cb391e2aa..0216ec5b2 100644 --- a/web/pgadmin/dashboard/static/js/ChartsDOM.jsx +++ b/web/pgadmin/dashboard/static/js/ChartsDOM.jsx @@ -19,7 +19,7 @@ export default class ChartsDOM { this.pageVisible = pageVisible; } - mount() { + render() { if(this.container && this.preferences.show_graphs) { ReactDOM.render(, this.container); } @@ -32,13 +32,13 @@ export default class ChartsDOM { setSidDid(sid, did) { this.sid = sid; this.did = did; - this.mount(); + this.render(); } reflectPreferences(preferences) { this.preferences = preferences; if(preferences.show_graphs) { - this.mount(); + this.render(); } else { this.unmount(); } @@ -46,6 +46,6 @@ export default class ChartsDOM { setPageVisible(visible) { this.pageVisible = visible; - this.mount(); + this.render(); } } \ No newline at end of file diff --git a/web/pgadmin/dashboard/static/js/dashboard.js b/web/pgadmin/dashboard/static/js/dashboard.js index b567df661..bc7849faa 100644 --- a/web/pgadmin/dashboard/static/js/dashboard.js +++ b/web/pgadmin/dashboard/static/js/dashboard.js @@ -280,7 +280,7 @@ define('pgadmin.dashboard', [ object_selected: function(item, itemData, node) { let self = this; - if (dashboardVisible && itemData && itemData._type) { + if (itemData && itemData._type) { var treeHierarchy = node.getTreeNodeHierarchy(item), url = NodesDashboard.url(itemData, item, treeHierarchy); @@ -378,7 +378,6 @@ define('pgadmin.dashboard', [ } } else { this.chartsDomObj && this.chartsDomObj.unmount(); - $(div).empty(); $(div).html( '' ); diff --git a/web/pgadmin/dashboard/static/scss/_dashboard.scss b/web/pgadmin/dashboard/static/scss/_dashboard.scss index b332c0e0a..e1399d9ea 100644 --- a/web/pgadmin/dashboard/static/scss/_dashboard.scss +++ b/web/pgadmin/dashboard/static/scss/_dashboard.scss @@ -49,7 +49,7 @@ & .dashboard-graph-body { padding: 0.25rem 0.5rem; - height: 175px; + height: 165px; & .flotr-labels { color: $color-fg !important;