mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 09:32:50 +00:00
feat: add player controls to uploaded clips on stats page
This commit is contained in:
@@ -74,7 +74,7 @@ export class Stats extends Component<IProps, IState> {
|
||||
},
|
||||
};
|
||||
|
||||
const { claims } = this.props.appStore;
|
||||
const { claims, hasModPermissions } = this.props.appStore;
|
||||
|
||||
return (
|
||||
<div className="content">
|
||||
@@ -82,7 +82,7 @@ export class Stats extends Component<IProps, IState> {
|
||||
<div className="card__header">Posts containing links</div>
|
||||
<HorizontalBar data={data} />
|
||||
</div>
|
||||
{claims && <UploadHistory sounds={this.state.sounds} />}
|
||||
{claims && <UploadHistory sounds={this.state.sounds} showDiscordPlay={hasModPermissions()} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user