1
0
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:
2019-08-24 11:12:58 -05:00
parent d29c23d9e4
commit 72ba1e5621
11 changed files with 201 additions and 70 deletions

View File

@@ -1,7 +1,6 @@
import { inject, observer } from 'mobx-react';
import React from 'react';
import { SoundList, SoundType, Uploader } from '../../components';
import { Permissions } from '../../model';
import { axios, SoundService } from '../../services';
import { AppStore } from '../../stores';
import './soundboard.scss';
@@ -73,9 +72,9 @@ export class Soundboard extends React.Component<Props, State> {
<Uploader onComplete={this.onUploadComplete} />
<SoundList
soundList={soundList}
type="Sounds"
type="sounds"
onPlayDiscord={this.onPlayDiscord}
showDiscordPlay={appStore!.claims && appStore!.claims!.permissions >= Permissions.Mod}
showDiscordPlay={appStore!.hasModPermissions()}
/>
</div>
);