Browse Source

show number of replies, reblogs and favourites

closed-social-glitch-2
欧醚 1 year ago
parent
commit
2dd7323d31
1 changed files with 20 additions and 4 deletions
  1. +20
    -4
      app/javascript/flavours/glitch/components/status_action_bar.jsx

+ 20
- 4
app/javascript/flavours/glitch/components/status_action_bar.jsx View File

@ -306,11 +306,27 @@ class StatusActionBar extends ImmutablePureComponent {
title={replyTitle} title={replyTitle}
icon={replyIcon} icon={replyIcon}
onClick={this.handleReplyClick} onClick={this.handleReplyClick}
counter={showReplyCount ? status.get('replies_count') : undefined}
obfuscateCount
counter={status.get('replies_count')}
obfuscateCount={showReplyCount}
/>
<IconButton
className={classNames('status__action-bar-button', { reblogPrivate })}
disabled={!publicStatus && !reblogPrivate}
active={status.get('reblogged')}
title={reblogTitle}
icon={reblogIcon}
onClick={this.handleReblogClick}
counter={status.get('reblogs_count')}
obfuscateCount={showReplyCount}
/>
<IconButton
className='status__action-bar-button star-icon'
animate active={status.get('favourited')}
title={intl.formatMessage(messages.favourite)}
icon='heart' onClick={this.handleFavouriteClick}
counter={status.get('favourites_count')}
obfuscateCount={showReplyCount}
/> />
<IconButton className={classNames('status__action-bar-button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon={reblogIcon} onClick={this.handleReblogClick} counter={withCounters ? status.get('reblogs_count') : undefined} />
<IconButton className='status__action-bar-button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='heart' onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
{shareButton} {shareButton}
<IconButton className='status__action-bar-button bookmark-icon' disabled={anonymousAccess} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} /> <IconButton className='status__action-bar-button bookmark-icon' disabled={anonymousAccess} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' onClick={this.handleBookmarkClick} />

Loading…
Cancel
Save