Refactor team name formatting and update version to 1.8.6
This commit is contained in:
@@ -220,6 +220,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { formatTeamDisplayName } from '~/utils/team-display'
|
||||
|
||||
const spielplanData = ref([])
|
||||
const isLoading = ref(false)
|
||||
@@ -357,15 +358,8 @@ const formatTime = (terminString) => {
|
||||
|
||||
const formatTeamName = (teamName, ageGroup) => {
|
||||
if (!teamName) return 'Nicht angegeben'
|
||||
|
||||
// Prüfe ob es Nachwuchs ist
|
||||
const isNachwuchs = ageGroup && (
|
||||
ageGroup.toLowerCase().includes('jugend') ||
|
||||
teamName.toLowerCase().includes('jugend')
|
||||
)
|
||||
|
||||
// Füge (J) für Nachwuchs hinzu
|
||||
return isNachwuchs ? `(J) ${teamName}` : teamName
|
||||
|
||||
return formatTeamDisplayName(teamName, ageGroup)
|
||||
}
|
||||
|
||||
const formatRunde = (runde) => {
|
||||
|
||||
Reference in New Issue
Block a user