X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FDetail.js;h=66b425e83740e4c0b81cdf10efa6cc2368016c04;hb=43da6b2ec78774e7b045a09c68af39717b5f5dbc;hp=b6afe902c5b3acc5fb0210424728e3a099602ab9;hpb=dd283dc4c2004cbeb36d17b878bb67f94d75d06a;p=alttp.git diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index b6afe90..66b425e 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -3,13 +3,18 @@ import React from 'react'; import { Button, Col, Container, Row } from 'react-bootstrap'; 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 { @@ -44,9 +49,16 @@ const Detail = ({

{tournament.title}

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

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

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