Shown some text on process watcher till the initial logs are loaded. Fixes #4925

This commit is contained in:
Aditya Toshniwal 2019-11-15 12:12:19 +05:30 committed by Akshay Joshi
parent 3ff4dfd02d
commit 00ce130286
2 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Bug fixes
| `Issue #3538 <https://redmine.postgresql.org/issues/3538>`_ - Fix issue where the Reset button does not get enabled till all the mandatory fields are provided in the dialog. | `Issue #3538 <https://redmine.postgresql.org/issues/3538>`_ - Fix issue where the Reset button does not get enabled till all the mandatory fields are provided in the dialog.
| `Issue #4792 <https://redmine.postgresql.org/issues/4792>`_ - Ensure that the superuser should be able to create database, as the superuser overrides all the access restrictions. | `Issue #4792 <https://redmine.postgresql.org/issues/4792>`_ - Ensure that the superuser should be able to create database, as the superuser overrides all the access restrictions.
| `Issue #4878 <https://redmine.postgresql.org/issues/4878>`_ - Ensure that the superuser should be able to create role, as the superuser overrides all the access restrictions. | `Issue #4878 <https://redmine.postgresql.org/issues/4878>`_ - Ensure that the superuser should be able to create role, as the superuser overrides all the access restrictions.
| `Issue #4925 <https://redmine.postgresql.org/issues/4925>`_ - Shown some text on process watcher till the initial logs are loaded.
| `Issue #4930 <https://redmine.postgresql.org/issues/4930>`_ - Fix main window tab navigation accessibility issue. | `Issue #4930 <https://redmine.postgresql.org/issues/4930>`_ - Fix main window tab navigation accessibility issue.
| `Issue #4934 <https://redmine.postgresql.org/issues/4934>`_ - Fix the help button link on the User Management dialog. | `Issue #4934 <https://redmine.postgresql.org/issues/4934>`_ - Fix the help button link on the User Management dialog.
| `Issue #4935 <https://redmine.postgresql.org/issues/4935>`_ - Fix accessibility issues. | `Issue #4935 <https://redmine.postgresql.org/issues/4935>`_ - Fix accessibility issues.

View File

@ -212,6 +212,11 @@ define('misc.bgprocess', [
}); });
} }
if(self.logs_loading) {
self.logs_loading.remove();
self.logs_loading = null;
}
if (self.stime) { if (self.stime) {
self.curr_status = self.other_status_tpl({status_text:gettext('Started')}); self.curr_status = self.other_status_tpl({status_text:gettext('Started')});
@ -414,6 +419,8 @@ define('misc.bgprocess', [
setTimeout(function() { setTimeout(function() {
self.logs[0].scrollTop = self.logs[0].scrollHeight; self.logs[0].scrollTop = self.logs[0].scrollHeight;
}); });
self.logs_loading = $(`<li class="pg-bg-res-out loading-logs">${gettext('Loading process logs...')}</li>`);
self.logs.append(self.logs_loading);
// set bgprocess detailed description // set bgprocess detailed description
$header.find('.bg-detailed-desc').html(self.detailed_desc); $header.find('.bg-detailed-desc').html(self.detailed_desc);
} }
@ -602,6 +609,7 @@ define('misc.bgprocess', [
showTitle: true, showTitle: true,
isCloseable: true, isCloseable: true,
isPrivate: true, isPrivate: true,
isLayoutMember: false,
content: '<div class="bg-process-details">' + content: '<div class="bg-process-details">' +
'<div class="bg-detailed-desc"></div>' + '<div class="bg-detailed-desc"></div>' +
'<div class="bg-process-stats d-flex py-1">' + '<div class="bg-process-stats d-flex py-1">' +