Add game links to schedule view

This commit is contained in:
Peter 2024-01-21 21:19:01 -05:00
parent 5b26093f5e
commit 49506ec779

View File

@ -32,7 +32,13 @@
{{ game.away_team.abbrev }}
</RouterLink>
</td>
<td>{{ game.away_score || game.home_score ? `${game.away_score}-${game.home_score}` : '@' }}</td>
<td>
<RouterLink v-if="game.away_score || game.home_score"
:to="{ name: 'games', params: { seasonNumber: seasonNumber, weekNumber: selectedWeekNumber, gameNumber: game.game_num, team1Abbreviation: game.away_team.abbrev, team2Abbreviation: game.home_team.abbrev } }">
{{ `${game.away_score}-${game.home_score}` }}
</RouterLink>
<template v-else>@</template>
</td>
<td>
<RouterLink
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.home_team.abbrev } }">