mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +01:00
Show boost button but disable if can't boost
This commit is contained in:
parent
687d82fc5a
commit
1405296e67
1 changed files with 12 additions and 13 deletions
|
@ -1030,19 +1030,18 @@ function Status({
|
|||
onClick={replyStatus}
|
||||
/>
|
||||
</div>
|
||||
{canBoost && (
|
||||
<div class="action has-count">
|
||||
<StatusButton
|
||||
checked={reblogged}
|
||||
title={['Boost', 'Unboost']}
|
||||
alt={['Boost', 'Boosted']}
|
||||
class="reblog-button"
|
||||
icon="rocket"
|
||||
count={reblogsCount}
|
||||
onClick={boostStatus}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div class="action has-count">
|
||||
<StatusButton
|
||||
checked={reblogged}
|
||||
title={['Boost', 'Unboost']}
|
||||
alt={['Boost', 'Boosted']}
|
||||
class="reblog-button"
|
||||
icon="rocket"
|
||||
count={reblogsCount}
|
||||
onClick={boostStatus}
|
||||
disabled={!canBoost}
|
||||
/>
|
||||
</div>
|
||||
<div class="action has-count">
|
||||
<StatusButton
|
||||
checked={favourited}
|
||||
|
|
Loading…
Reference in a new issue