Update visible shelve buttons on read action

This commit is contained in:
Mouse Reeve
2021-09-09 15:36:58 -07:00
parent 5f584c1403
commit 9ee1a110a9
5 changed files with 105 additions and 53 deletions

View File

@ -6,7 +6,7 @@
{% with book.id|uuid as uuid %}
{% active_shelf book as active_shelf %}
{% latest_read_through book request.user as readthrough %}
<div class="field has-addons mb-0">
<div class="field has-addons mb-0" data-shelve-button-book="{{ book.id }}">
{% if switch_mode and active_shelf.book != book %}
<div class="control">
{% include 'snippets/switch_edition_button.html' with edition=book size='is-small' %}