Add progress indicator on boost/fav

This commit is contained in:
Jason McBrayer 2018-08-30 18:57:24 -04:00
parent 77b79b32b8
commit f224d70750
1 changed files with 5 additions and 2 deletions

View File

@ -92,7 +92,8 @@
</a>
{% if toot.visibility != 'private' and toot.visibility != 'direct' %}
<a href="{% url "boost" toot.id %}" class="level-item"
ic-post-to="{% url "boost" toot.id %}">
ic-post-to="{% url "boost" toot.id %}"
ic-indicator="#toot-spinner">
{% if toot.reblogged %}
<span class="fa fa-retweet has-text-warning">
<strong class="is-hidden-mobile" >Boosted</strong>
@ -105,7 +106,8 @@
</a>
{% endif %}
<a href="{% url "fav" toot.id %}" class="level-item"
ic-post-to="{% url "fav" toot.id %}">
ic-post-to="{% url "fav" toot.id %}"
ic-indicator="#toot-spinner">
{% if toot.favourited %}
<span class="fa fa-heart has-text-warning">
<strong class="is-hidden-mobile" >Favorited</strong>
@ -116,6 +118,7 @@
</span>
</span>
</a>
<i id="toot-spinner" class="fa fa-spinner fa-spin" style="display:none"></i>
</div>
<div class="level-right">
{% if toot.account.acct == own_acct.acct %}