mirror of https://git.48k.eu/ogcp
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
parent
a8af19fa23
commit
9107316e0e
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue