X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FDetail.js;h=66b425e83740e4c0b81cdf10efa6cc2368016c04;hb=f446d5bcf3b87bd9443a060e27e9c0601c96fbb9;hp=b20f2082c36ca2273584f55a1cb6890c194801fc;hpb=3a774bb649734fc3a2135ec1b52cef9a049880ee;p=alttp.git diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index b20f208..66b425e 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -5,12 +5,16 @@ import { withTranslation } from 'react-i18next'; import ApplyButton from './ApplyButton'; import Scoreboard from './Scoreboard'; +import ScoreChartButton from './ScoreChartButton'; +import SettingsButton from './SettingsButton'; +import ApplicationsButton from '../applications/Button'; import Protocol from '../protocol/Protocol'; import Rounds from '../rounds/List'; import Box from '../users/Box'; import { isRunner, mayAddRounds, + mayUpdateTournament, mayViewProtocol, } from '../../helpers/permissions'; import { @@ -46,7 +50,11 @@ const Detail = ({

{tournament.title}

+ + {mayUpdateTournament(user, tournament) ? + + : null} {mayViewProtocol(user, tournament) ? : null} @@ -59,6 +67,9 @@ const Detail = ({

{i18n.t('tournaments.scoreboard')}

+ {hasRunners(tournament) && tournament.rounds.length > 2 ? + + : null}
{hasRunners(tournament) ?