public inbox for [email protected]  
help / color / mirror / Atom feed
[pgAdmin][RM-7186]: Connect database issue from object menu
2+ messages / 2 participants
[nested] [flat]

* [pgAdmin][RM-7186]: Connect database issue from object menu
@ 2022-03-07 09:15  Nikhil Mohite <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Nikhil Mohite @ 2022-03-07 09:15 UTC (permalink / raw)
  To: pgadmin-hackers

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() {


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [pgAdmin][RM-7186]: Connect database issue from object menu
@ 2022-03-07 10:04  Akshay Joshi <[email protected]>
  parent: Nikhil Mohite <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Akshay Joshi @ 2022-03-07 10:04 UTC (permalink / raw)
  To: Nikhil Mohite <[email protected]>; +Cc: pgadmin-hackers

Thanks, the patch applied.

On Mon, Mar 7, 2022 at 2:45 PM Nikhil Mohite <[email protected]>
wrote:

> 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.*
>


-- 
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-03-07 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 09:15 [pgAdmin][RM-7186]: Connect database issue from object menu Nikhil Mohite <[email protected]>
2022-03-07 10:04 ` Akshay Joshi <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox