Don't request pagination links for API Message log page

Counting pages for API notifications takes a long time for services
with a lot of sent messages (since it issues a `count(*)` query for
the given filter). Since API message log doesn't have a "Next page"
link we can skip the count by setting a flag on the API request.
This commit is contained in:
Alexey Bezhan
2019-01-08 15:35:44 +00:00
parent 0b22fff751
commit 6cd18f87de
3 changed files with 25 additions and 22 deletions

View File

@@ -83,7 +83,7 @@
{% endfor %}
{% if api_notifications.notifications %}
<div class="api-notifications-item">
{% if api_notifications.links %}
{% if api_notifications.notifications|length == 50 %}
<p class="api-notifications-item-meta">
Only showing the first 50 messages.
</p>