]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/tournament/Detail.js
allow admins to lock/unlock rounds
[alttp.git] / resources / js / components / tournament / Detail.js
index c966ca5250685da8c6a582302dfe6d8bd84ccdb7..5b8e7804a5e45e0006c27a4f9bdae44d985bff33 100644 (file)
@@ -12,7 +12,6 @@ import {
        mayViewProtocol,
 } from '../../helpers/permissions';
 import {
-       getRunners,
        getTournamentAdmins,
        hasRunners,
        hasTournamentAdmins,
@@ -36,20 +35,7 @@ const Detail = ({
                </Col>
        </Row>
        <Row>
-               <Col lg={8} xl={9}>
-                       <div className="d-flex align-items-center justify-content-between">
-                               <h2>{i18n.t('rounds.heading')}</h2>
-                               {addRound && mayAddRounds(user, tournament) ?
-                                       <Button onClick={addRound}>
-                                               {i18n.t('rounds.new')}
-                                       </Button>
-                               : null}
-                       </div>
-                       {tournament.rounds ?
-                               <Rounds rounds={tournament.rounds} tournament={tournament} />
-                       : null}
-               </Col>
-               <Col lg={4} xl={3}>
+               <Col lg={{ order: 2, span: 4 }} xl={{ order: 2, span: 3 }}>
                        <div className="d-flex align-items-center justify-content-between">
                                <h2>{i18n.t('tournaments.scoreboard')}</h2>
                        </div>
@@ -67,6 +53,19 @@ const Detail = ({
                                </>
                        : null}
                </Col>
+               <Col lg={{ order: 1, span: 8 }} xl={{ order: 1, span: 9 }}>
+                       <div className="d-flex align-items-center justify-content-between">
+                               <h2>{i18n.t('rounds.heading')}</h2>
+                               {addRound && mayAddRounds(user, tournament) ?
+                                       <Button onClick={addRound}>
+                                               {i18n.t('rounds.new')}
+                                       </Button>
+                               : null}
+                       </div>
+                       {tournament.rounds ?
+                               <Rounds rounds={tournament.rounds} tournament={tournament} />
+                       : null}
+               </Col>
        </Row>
 </Container>;