fix: Hide delete inactive timers button if there are no entries

This commit is contained in:
earthcomfy 2022-09-30 22:44:36 +03:00 committed by Christopher Charbonneau Wells
parent 74582effb1
commit 364676aeac
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@
</div>
{% include 'babybuddy/paginator.html' %}
{% if perms.core.delete_timer %}
{% if object_list and perms.core.delete_timer %}
<a href="{% url 'core:timer-delete-inactive' %}" class="btn btn-sm btn-danger">
<i class="icon-delete" aria-hidden="true"></i> {% trans "Delete Inactive Timers" %}
</a>