diff --git a/src/components/TeamCard.vue b/src/components/TeamCard.vue index d3aac12..726a974 100755 --- a/src/components/TeamCard.vue +++ b/src/components/TeamCard.vue @@ -10,6 +10,7 @@ storeToRefs(useUserStore()); defineProps<{ team: Team; + soloGame?: boolean; }>(); @@ -19,7 +20,10 @@ defineProps<{ {{ team.name }} -
{{ (player as PlayerRegistration).name_in_game }}
diff --git a/src/components/TournamentTeams.vue b/src/components/TournamentTeams.vue
index 5b8bd8d..2817440 100644
--- a/src/components/TournamentTeams.vue
+++ b/src/components/TournamentTeams.vue
@@ -13,7 +13,7 @@ const { getTournamentTeams } = tournamentStore;
getTournamentTeams();
-const { tourney_teams } = storeToRefs(tournamentStore);
+const { tourney_teams, soloGame } = storeToRefs(tournamentStore);
@@ -30,6 +30,7 @@ const { tourney_teams } = storeToRefs(tournamentStore);
v-for="team in tourney_teams.validated_teams"
:key="team.id"
:team="team"
+ :solo-game="soloGame"
/>
diff --git a/src/stores/tournament.store.ts b/src/stores/tournament.store.ts
index fe359d4..1a199e4 100755
--- a/src/stores/tournament.store.ts
+++ b/src/stores/tournament.store.ts
@@ -489,6 +489,8 @@ export const useTournamentStore = defineStore('tournament', () => {
return res;
};
+ const soloGame = computed(() => (tournament.value as TournamentDeref | undefined)?.game.players_per_team === 1);
+
function $reset() {
eventsList.value = {};
tournamentsList.value = {};
@@ -543,5 +545,6 @@ export const useTournamentStore = defineStore('tournament', () => {
get_ticket_pdf,
get_unpaid_registration,
validate_registration,
+ soloGame,
};
});
diff --git a/src/views/TournamentRegister.vue b/src/views/TournamentRegister.vue
index 98c4329..f320d9f 100755
--- a/src/views/TournamentRegister.vue
+++ b/src/views/TournamentRegister.vue
@@ -26,9 +26,7 @@ const tournamentStore = useTournamentStore();
const {
registerTeam, registerPlayerOrManager, getTournamentFull, payRegistration,
} = tournamentStore;
-const { tournamentsList } = storeToRefs(tournamentStore);
-const tournament = computed