Don't show a button for the shelf a book is currently on

This will lead to nonsensical modal states
This commit is contained in:
Mouse Reeve 2022-05-26 11:19:49 -07:00
parent 92dbfec5f8
commit 9b4a498661

View file

@ -6,6 +6,7 @@
{% for shelf in shelves %}
{% comparison_bool shelf.identifier active_shelf.shelf.identifier as is_current %}
{% if not is_current %}
<li role="menuitem" class="dropdown-item p-0">
<div
class="{% if next_shelf_identifier == shelf.identifier %}is-hidden{% endif %}"
@ -53,6 +54,7 @@
{% endif %}
</div>
</li>
{% endif %}
{% endfor %}
{% if readthrough and active_shelf.shelf.identifier != 'read' %}