templates: hide detailed cache view with zero images

Hide the cache inspector when no cache elements are found in
neither of the selected clients.
Fix js exception caused by an array access in an empty image list.
master
Alejandro Sirgo Rica 2024-06-27 13:48:11 +02:00
parent a8af19fa23
commit 9107316e0e
1 changed files with 6 additions and 5 deletions

View File

@ -49,11 +49,6 @@
{{ _('Delete') }}
</button>
</form>
{% else %}
<div class="card text-center">
<b>{{ _('Cache is currently empty in the selected client(s)') }}</b>
</div>
{% endif %}
<br>
@ -195,4 +190,10 @@
});
</script>
{% else %}
<div class="card text-center">
<b>{{ _('Cache is currently empty in the selected client(s)') }}</b>
</div>
{% endif %}
{% endblock %}