X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2FTournament.js;h=9d2962d27c5e3f4a63ee2a6cc58f526b068bff22;hb=b45c183b7ba39080b6438c6238bad614c4d3953e;hp=8f2239f1695c2a87515d5cf876784b1ef4b769f7;hpb=68d65789e2b64cd32d778c1e69a346521d2e38d6;p=alttp.git diff --git a/resources/js/helpers/Tournament.js b/resources/js/helpers/Tournament.js index 8f2239f..9d2962d 100644 --- a/resources/js/helpers/Tournament.js +++ b/resources/js/helpers/Tournament.js @@ -30,6 +30,10 @@ export const getRunners = tournament => { .sort(Participant.compareUsername); }; +export const hasScoreboard = tournament => !!(tournament && tournament.type === 'signup-async'); + +export const hasSignup = tournament => !!(tournament && tournament.type === 'signup-async'); + export const getScoreTable = tournament => { if (!tournament || !tournament.rounds || !tournament.rounds.length) return []; const runners = getRunners(tournament); @@ -190,6 +194,8 @@ export default { getTournamentCrew, getTournamentMonitors, hasRunners, + hasScoreboard, + hasSignup, hasTournamentAdmins, hasTournamentCrew, hasTournamentMonitors,