mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Merge pull request #3372 from alphagov/increase-ajax
Increase all ajax calls to 5 seconds
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{% macro ajax_block(partials, url, key, interval=2, finished=False, form='') %}
|
{% macro ajax_block(partials, url, key, interval=5, finished=False, form='') %}
|
||||||
{% if not finished %}
|
{% if not finished %}
|
||||||
<div
|
<div
|
||||||
data-module="update-content"
|
data-module="update-content"
|
||||||
|
|||||||
@@ -19,24 +19,24 @@
|
|||||||
{% include 'views/dashboard/write-first-messages.html' %}
|
{% include 'views/dashboard/write-first-messages.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'upcoming', interval=5) }}
|
{{ ajax_block(partials, updates_url, 'upcoming') }}
|
||||||
|
|
||||||
<h2 class="heading-medium">
|
<h2 class="heading-medium">
|
||||||
In the last 7 days
|
In the last 7 days
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'inbox', interval=5) }}
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'totals', interval=5) }}
|
{{ ajax_block(partials, updates_url, 'totals') }}
|
||||||
{{ show_more(
|
{{ show_more(
|
||||||
url_for('.monthly', service_id=current_service.id),
|
url_for('.monthly', service_id=current_service.id),
|
||||||
'See messages sent per month'
|
'See messages sent per month'
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'template-statistics', interval=5) }}
|
{{ ajax_block(partials, updates_url, 'template-statistics') }}
|
||||||
|
|
||||||
{% if current_service.immediate_jobs and not current_service.has_permission('upload_letters') %}
|
{% if current_service.immediate_jobs and not current_service.has_permission('upload_letters') %}
|
||||||
{{ ajax_block(partials, updates_url, 'jobs', interval=5) }}
|
{{ ajax_block(partials, updates_url, 'jobs') }}
|
||||||
{{ show_more(
|
{{ show_more(
|
||||||
url_for('.view_jobs', service_id=current_service.id),
|
url_for('.view_jobs', service_id=current_service.id),
|
||||||
'See all uploaded files'
|
'See all uploaded files'
|
||||||
|
|||||||
Reference in New Issue
Block a user