public inbox for [email protected]
help / color / mirror / Atom feedFrom: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-7186]: Connect database issue from object menu
Date: Mon, 7 Mar 2022 14:45:36 +0530
Message-ID: <CAOBg0ANvcOrSfvvpjYZsh38bTWz6Y2EPmbdinXfKGMpoCCcKGQ@mail.gmail.com> (raw)
Hi Hackers,
Please find attached the patch for RM-7186
<https://redmine.postgresql.org/issues/7186;: Connect database issue from
the object menu.
--
*Thanks & Regards,*
*Nikhil Mohite*
*Senior Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*
Attachments:
[application/octet-stream] RM-7186.patch (840B, 3-RM-7186.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js b/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js
index f16916cb..344abcac 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js
@@ -477,6 +477,9 @@ define('pgadmin.node.database', [
pgBrowser.Events.trigger(
'pgadmin:database:connected', _item, _data
);
+ /* Call enable/disable menu function after database is connected.
+ To make sure all the menus for database is in the right state */
+ pgBrowser.enable_disable_menus.apply(pgBrowser, [_item]);
if (!_connected) {
setTimeout(function() {
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin][RM-7186]: Connect database issue from object menu
In-Reply-To: <CAOBg0ANvcOrSfvvpjYZsh38bTWz6Y2EPmbdinXfKGMpoCCcKGQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox