Skip to content

Commit

Permalink
Fix: #762 「ブーストボタンを押したときにポップアップメニューを表示する」設定を有効にしてると、プロフィールページの各投稿のブース…
Browse files Browse the repository at this point in the history
…ト数が表示されなくなる (#765)
  • Loading branch information
kmycode authored Jun 24, 2024
1 parent 87c6166 commit e8dfef4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ class StatusActionBar extends ImmutablePureComponent {

const isReply = status.get('in_reply_to_account_id') === status.getIn(['account', 'id']);

const reblogButton = <IconButton className={classNames('status__action-bar__button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' iconComponent={reblogIconComponent} onClick={this.handleReblogClick} counter={withCounters ? status.get('reblogs_count') : undefined} />;

return (
<div className='status__action-bar'>
<IconButton className='status__action-bar__button' title={replyTitle} icon={isReply ? 'reply' : replyIcon} iconComponent={isReply ? ReplyIcon : replyIconComponent} onClick={this.handleReplyClick} counter={status.get('replies_count')} />
{reblogMenu.length === 0 ? (
<IconButton className={classNames('status__action-bar__button', { reblogPrivate })} disabled={!publicStatus && !reblogPrivate} active={status.get('reblogged')} title={reblogTitle} icon='retweet' iconComponent={reblogIconComponent} onClick={this.handleReblogClick} counter={withCounters ? status.get('reblogs_count') : undefined} />
) : (
{reblogMenu.length === 0 ? reblogButton : (
<DropdownMenuContainer
className={classNames('status__action-bar__button', { reblogPrivate })}
scrollKey={scrollKey}
Expand All @@ -520,7 +520,9 @@ class StatusActionBar extends ImmutablePureComponent {
title={reblogTitle}
active={status.get('reblogged')}
disabled={!publicStatus && !reblogPrivate}
/>
>
{reblogButton}
</DropdownMenuContainer>
)}
<IconButton className='status__action-bar__button star-icon' animate active={status.get('favourited')} title={intl.formatMessage(messages.favourite)} icon='star' iconComponent={status.get('favourited') ? StarIcon : StarBorderIcon} onClick={this.handleFavouriteClick} counter={withCounters ? status.get('favourites_count') : undefined} />
<IconButton className='status__action-bar__button bookmark-icon' disabled={!signedIn} active={status.get('bookmarked')} title={intl.formatMessage(messages.bookmark)} icon='bookmark' iconComponent={status.get('bookmarked') ? BookmarkIcon : BookmarkBorderIcon} onClick={this.handleBookmarkClick} />
Expand Down

0 comments on commit e8dfef4

Please sign in to comment.