Only show update option when there's an active readthrough

This commit is contained in:
Mouse Reeve 2021-08-27 12:21:16 -07:00
parent 691f9c01c4
commit ae840002de

View file

@ -42,7 +42,7 @@
{% endfor %} {% endfor %}
{% if dropdown %} {% if dropdown %}
{% if readthrough and active_shelf.shelf.identifier != 'read' %} {% if readthrough and not readthrough.finish_date and active_shelf.shelf.identifier != 'read' %}
<li role="menuitem" class="dropdown-item p-0"> <li role="menuitem" class="dropdown-item p-0">
{% trans "Update progress" as button_text %} {% trans "Update progress" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="progress_update" controls_uid=button_uuid focus="modal_title_progress_update" %} {% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="progress_update" controls_uid=button_uuid focus="modal_title_progress_update" %}