mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2025-01-21 10:34:04 +01:00
Disable reactions in detailed status view when visibleReactions is 0
This commit is contained in:
parent
47c2781058
commit
83f07c7d9b
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ import { DisplayName } from '../../../components/display_name';
|
||||||
import MediaGallery from '../../../components/media_gallery';
|
import MediaGallery from '../../../components/media_gallery';
|
||||||
import StatusContent from '../../../components/status_content';
|
import StatusContent from '../../../components/status_content';
|
||||||
import StatusReactions from '../../../components/status_reactions';
|
import StatusReactions from '../../../components/status_reactions';
|
||||||
|
import { visibleReactions } from '../../../initial_state';
|
||||||
import Audio from '../../audio';
|
import Audio from '../../audio';
|
||||||
import scheduleIdleTask from '../../ui/util/schedule_idle_task';
|
import scheduleIdleTask from '../../ui/util/schedule_idle_task';
|
||||||
import Video from '../../video';
|
import Video from '../../video';
|
||||||
|
@ -311,13 +312,13 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
{...statusContentProps}
|
{...statusContentProps}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<StatusReactions
|
{visibleReactions > 0 && (<StatusReactions
|
||||||
statusId={status.get('id')}
|
statusId={status.get('id')}
|
||||||
reactions={status.get('reactions')}
|
reactions={status.get('reactions')}
|
||||||
addReaction={this.props.onReactionAdd}
|
addReaction={this.props.onReactionAdd}
|
||||||
removeReaction={this.props.onReactionRemove}
|
removeReaction={this.props.onReactionRemove}
|
||||||
canReact={this.props.identity.signedIn}
|
canReact={this.props.identity.signedIn}
|
||||||
/>
|
/>)}
|
||||||
|
|
||||||
<div className='detailed-status__meta'>
|
<div className='detailed-status__meta'>
|
||||||
<div className='detailed-status__meta__line'>
|
<div className='detailed-status__meta__line'>
|
||||||
|
|
Loading…
Reference in a new issue