1
0
Fork 0

Don't start imports with empty csvs

Fixes #2353
This commit is contained in:
Mouse Reeve 2022-11-25 10:35:16 -08:00
parent 9dd0e22a47
commit 015af2c1e7
3 changed files with 12 additions and 3 deletions

View file

@ -8,6 +8,12 @@
<div class="block">
<h1 class="title">{% trans "Import Books" %}</h1>
{% if invalid %}
<div class="notification is-danger">
{% trans "Not a valid CSV file" %}
</div>
{% endif %}
{% if site.imports_enabled %}
{% if recent_avg_hours or recent_avg_minutes %}
<div class="notification">