mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
More accurate button display
Now, a follow button will show as pending even if the user doesn't manually approve followers, if that's the state the request is in.
This commit is contained in:
parent
ed847494ab
commit
923495e454
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
<form action="{% url 'unfollow' %}" method="POST" class="interaction follow_{{ user.id }} {% if not relationship.is_following and not relationship.is_follow_pending %}is-hidden{%endif %}" data-id="follow_{{ user.id }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ user.username }}">
|
||||
{% if user.manually_approves_followers and not relationship.is_following %}
|
||||
{% if relationship.is_follow_pending %}
|
||||
<button class="button is-small is-danger is-light" type="submit">
|
||||
{% trans "Undo follow request" %}
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue