Erweiterung der Teamformatierungsfunktionen um Altersgruppen für bessere Anzeige in Spielplänen
This commit is contained in:
@@ -58,9 +58,9 @@
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-sm text-gray-800">
|
||||
{{ formatMatchTeamName(game.HeimMannschaft, game.HeimMannschaftAltersklasse) }}
|
||||
{{ formatMatchTeamName(game.HeimMannschaft, game.HeimMannschaftAltersklasse, game.Altersklasse) }}
|
||||
vs
|
||||
{{ formatMatchTeamName(game.GastMannschaft, game.GastMannschaftAltersklasse) }}
|
||||
{{ formatMatchTeamName(game.GastMannschaft, game.GastMannschaftAltersklasse, game.Altersklasse) }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,8 +97,8 @@ const widgetTitle = computed(() => {
|
||||
return formatTeamDisplayName(props.teamName, props.teamAgeGroup)
|
||||
})
|
||||
|
||||
function formatMatchTeamName(teamName, teamAgeGroup) {
|
||||
return formatTeamDisplayName(teamName, teamAgeGroup) || '-'
|
||||
function formatMatchTeamName(teamName, teamAgeGroup, competitionAgeGroup) {
|
||||
return formatTeamDisplayName(teamName, teamAgeGroup, competitionAgeGroup) || '-'
|
||||
}
|
||||
|
||||
const seasonLabel = computed(() => {
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
<div class="h-3 w-px shrink-0 bg-primary-700" />
|
||||
<NuxtLink
|
||||
to="/mannschaften/spielplaene"
|
||||
class="shrink-0 px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
class="shrink-0 whitespace-nowrap px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
active-class="text-white bg-primary-600"
|
||||
>
|
||||
Spielpläne
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
Heim
|
||||
</p>
|
||||
<p class="font-semibold text-gray-900">
|
||||
{{ formatTeamName(game.HeimMannschaft, game.HeimMannschaftAltersklasse) }}
|
||||
{{ formatTeamName(game.HeimMannschaft, game.HeimMannschaftAltersklasse, game.Altersklasse) }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-center mx-4">
|
||||
@@ -159,7 +159,7 @@
|
||||
Gast
|
||||
</p>
|
||||
<p class="font-semibold text-gray-900">
|
||||
{{ formatTeamName(game.GastMannschaft, game.GastMannschaftAltersklasse) }}
|
||||
{{ formatTeamName(game.GastMannschaft, game.GastMannschaftAltersklasse, game.Altersklasse) }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -356,10 +356,10 @@ const formatTime = (terminString) => {
|
||||
}
|
||||
}
|
||||
|
||||
const formatTeamName = (teamName, ageGroup) => {
|
||||
const formatTeamName = (teamName, ageGroup, competitionAgeGroup) => {
|
||||
if (!teamName) return 'Nicht angegeben'
|
||||
|
||||
return formatTeamDisplayName(teamName, ageGroup)
|
||||
return formatTeamDisplayName(teamName, ageGroup, competitionAgeGroup)
|
||||
}
|
||||
|
||||
const formatRunde = (runde) => {
|
||||
|
||||
Reference in New Issue
Block a user