From 00ce130286defdc9156c0784beacb3ff9b4f00a0 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Fri, 15 Nov 2019 12:12:19 +0530 Subject: [PATCH] Shown some text on process watcher till the initial logs are loaded. Fixes #4925 --- docs/en_US/release_notes_4_16.rst | 1 + web/pgadmin/misc/bgprocess/static/js/bgprocess.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/en_US/release_notes_4_16.rst b/docs/en_US/release_notes_4_16.rst index 81028ac1b..587c5e303 100644 --- a/docs/en_US/release_notes_4_16.rst +++ b/docs/en_US/release_notes_4_16.rst @@ -20,6 +20,7 @@ Bug fixes | `Issue #3538 `_ - Fix issue where the Reset button does not get enabled till all the mandatory fields are provided in the dialog. | `Issue #4792 `_ - Ensure that the superuser should be able to create database, as the superuserĀ overrides all the access restrictions. | `Issue #4878 `_ - Ensure that the superuser should be able to create role, as the superuserĀ overrides all the access restrictions. +| `Issue #4925 `_ - Shown some text on process watcher till the initial logs are loaded. | `Issue #4930 `_ - Fix main window tab navigation accessibility issue. | `Issue #4934 `_ - Fix the help button link on the User Management dialog. | `Issue #4935 `_ - Fix accessibility issues. diff --git a/web/pgadmin/misc/bgprocess/static/js/bgprocess.js b/web/pgadmin/misc/bgprocess/static/js/bgprocess.js index 01301cc64..76ffa96d4 100644 --- a/web/pgadmin/misc/bgprocess/static/js/bgprocess.js +++ b/web/pgadmin/misc/bgprocess/static/js/bgprocess.js @@ -212,6 +212,11 @@ define('misc.bgprocess', [ }); } + if(self.logs_loading) { + self.logs_loading.remove(); + self.logs_loading = null; + } + if (self.stime) { self.curr_status = self.other_status_tpl({status_text:gettext('Started')}); @@ -414,6 +419,8 @@ define('misc.bgprocess', [ setTimeout(function() { self.logs[0].scrollTop = self.logs[0].scrollHeight; }); + self.logs_loading = $(`
  • ${gettext('Loading process logs...')}
  • `); + self.logs.append(self.logs_loading); // set bgprocess detailed description $header.find('.bg-detailed-desc').html(self.detailed_desc); } @@ -602,6 +609,7 @@ define('misc.bgprocess', [ showTitle: true, isCloseable: true, isPrivate: true, + isLayoutMember: false, content: '
    ' + '
    ' + '
    ' +