feat(tournament): refine mini championship creation and UI integration

- Updated the addMiniChampionship method to default winning sets to 1 and added transaction handling for improved reliability.
- Enhanced frontend components to include a new property for mini championship identification, ensuring proper configuration in the UI.
- Adjusted the display logic in TournamentConfigTab to conditionally render stage configuration based on the mini championship type.
This commit is contained in:
Torsten Schulz (local)
2026-01-30 23:09:21 +01:00
parent 025ad68cf3
commit 14dc654145
3 changed files with 48 additions and 33 deletions

View File

@@ -48,7 +48,7 @@
@update:newClassMinBirthYear="$emit('update:newClassMinBirthYear', $event)"
/>
<div class="stage-config" style="margin-top: 1.5rem;">
<div v-if="!isMiniChampionship" class="stage-config" style="margin-top: 1.5rem;">
<h3>Zwischenrunde & Endrunde</h3>
<div v-if="stageConfig.loading" style="opacity: 0.8;">
Lade Zwischenrunden …
@@ -224,6 +224,10 @@ export default {
type: Boolean,
required: true
},
isMiniChampionship: {
type: Boolean,
default: false
},
tournamentClasses: {
type: Array,
required: true

View File

@@ -95,6 +95,7 @@
:club-id="currentClub"
:tournament-id="selectedDate"
:tournament-name="currentTournamentName"
:is-mini-championship="isMiniChampionship"
:tournament-date="currentTournamentDate"
:winning-sets="currentWinningSets"
:is-group-tournament="isGroupTournament"