public inbox for [email protected]  
help / color / mirror / Atom feed
From: Murtuza Zabuawala <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch] Grid on the dashboard is not getting refresh after killing the session
Date: Fri, 18 Jan 2019 20:02:44 +0530
Message-ID: <CAKKotZTHbabm7eJi57sCVVJG53jtYdcgGkNjg3Srebm7Hwtciw@mail.gmail.com> (raw)

Hi,

PFA minor patch to fix the regression issue where a user kills the session
from the dashboard grid, but the grid was not getting refreshed and the
killed session was not getting removed from it.


--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Attachments:

  [application/octet-stream] fix_dashboard_gird_refresh_issue.diff (733B, 3-fix_dashboard_gird_refresh_issue.diff)
  download | inline diff:
diff --git a/web/pgadmin/dashboard/static/js/dashboard.js b/web/pgadmin/dashboard/static/js/dashboard.js
index 5b9c4026..3c9a43a3 100644
--- a/web/pgadmin/dashboard/static/js/dashboard.js
+++ b/web/pgadmin/dashboard/static/js/dashboard.js
@@ -70,12 +70,8 @@ define('pgadmin.dashboard', [
         return;
 
       // This will refresh the grid
-      var refresh_grid = function() {
-        if (is_server_dashboard) {
-          $('#btn_server_activity_refresh').trigger('click');
-        } else if (is_database_dashboard) {
-          $('#btn_database_activity_refresh').trigger('click');
-        }
+      let refresh_grid = () => {
+        $('#btn_refresh').trigger('click');
       };
 
       if (cell_action === 'cancel') {


view thread (3+ 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: [pgAdmin4][Patch] Grid on the dashboard is not getting refresh after killing the session
  In-Reply-To: <CAKKotZTHbabm7eJi57sCVVJG53jtYdcgGkNjg3Srebm7Hwtciw@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