mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 15:58:25 -04:00
Removed polling logic from status page and added button instead
This commit is contained in:
@@ -12,7 +12,13 @@
|
|||||||
|
|
||||||
{{ page_header("Message status") }}
|
{{ page_header("Message status") }}
|
||||||
{% if not job.finished_processing %}
|
{% if not job.finished_processing %}
|
||||||
<p class="max-width-full">This page refreshes automatically to show the latest message activity delivery rates, details, and reports.<br>You can watch it in progress or check back later.</p>
|
<p class="max-width-full">This page no longer refreshes automatically. Use the refresh button below to check the latest message status.</p>
|
||||||
|
<form method="get" style="display: inline-block;">
|
||||||
|
<button type="submit" class="usa-button usa-button--outline">
|
||||||
|
Refresh Status
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
<br><br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div data-job-id="{{ job.id }}" data-host="{{ api_public_url }}">
|
<div data-job-id="{{ job.id }}" data-host="{{ api_public_url }}">
|
||||||
{% if not job.finished_processing and FEATURE_SOCKET_ENABLED %}
|
{% if not job.finished_processing and FEATURE_SOCKET_ENABLED %}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const javascripts = () => {
|
|||||||
paths.src + 'javascripts/activityChart.js',
|
paths.src + 'javascripts/activityChart.js',
|
||||||
paths.src + 'javascripts/sidenav.js',
|
paths.src + 'javascripts/sidenav.js',
|
||||||
paths.src + 'javascripts/validation.js',
|
paths.src + 'javascripts/validation.js',
|
||||||
paths.src + 'javascripts/job-status-polling.js',
|
// paths.src + 'javascripts/job-status-polling.js', // Disabled for manual refresh mode
|
||||||
paths.src + 'javascripts/scrollPosition.js',
|
paths.src + 'javascripts/scrollPosition.js',
|
||||||
])
|
])
|
||||||
.pipe(plugins.prettyerror())
|
.pipe(plugins.prettyerror())
|
||||||
@@ -105,6 +105,7 @@ const copySetTimezone = () => {
|
|||||||
return src(paths.src + 'js/setTimezone.js').pipe(dest(paths.dist + 'js/'));
|
return src(paths.src + 'js/setTimezone.js').pipe(dest(paths.dist + 'js/'));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Task to copy images
|
// Task to copy images
|
||||||
const copyImages = () => {
|
const copyImages = () => {
|
||||||
return src(paths.src + 'images/**/*', { encoding: false }).pipe(
|
return src(paths.src + 'images/**/*', { encoding: false }).pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user