From 85b40ee4f07fdb66c735f5c1e311f15d3a188a87 Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Fri, 5 Feb 2021 14:15:37 +0530 Subject: [PATCH] Fixed an issue where the user unable to change the background color for a server. Fixes #6178 --- docs/en_US/release_notes_5_0.rst | 1 + web/pgadmin/static/js/backform.pgadmin.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en_US/release_notes_5_0.rst b/docs/en_US/release_notes_5_0.rst index 8e885f69a..411550923 100644 --- a/docs/en_US/release_notes_5_0.rst +++ b/docs/en_US/release_notes_5_0.rst @@ -32,6 +32,7 @@ Bug fixes | `Issue #6163 `_ - Fixed an issue where Zoom to fit button only works if the diagram is larger than the canvas. | `Issue #6164 `_ - Ensure that the diagram should not vanish entirely if zooming out too far in ERD. | `Issue #6177 `_ - Fixed an issue while downloading ERD images in Safari and Firefox. +| `Issue #6178 `_ - Fixed an issue where the user unable to change the background color for a server. | `Issue #6179 `_ - Fixed an issue where Generate SQL displayed twice in the ERD tool. | `Issue #6180 `_ - Updated missing documentation for the 'Download Image' option in ERD. | `Issue #6187 `_ - Limit the upgrade check to run once per day. diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 59d24ac59..85c703e22 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -3207,12 +3207,12 @@ define([ }); }).on('clear', (instance) => { this.applyColor(name, instance, null); - }).on('change', (color, instance) => { + }).on('change', (color, source, instance) => { this.applyColor(name, instance, color); }).on('show', (color, instance) => { const {palette} = instance.getRoot().palette; palette.focus(); - }).on('hide', (color, instance) => { + }).on('hide', (instance) => { const button = instance.getRoot().button; button.focus(); });