feat(tournament): enhance tournament configuration and results handling
- Updated TournamentConfigTab.vue to conditionally disable target type selection based on final stage type. - Improved logic for determining target type and group count based on stage configuration. - Refactored TournamentPlacementsTab.vue to streamline class and group placements display, including better handling of class visibility and player names. - Enhanced TournamentResultsTab.vue to handle 'BYE' results and limit displayed entries to top three. - Modified TournamentTab.vue to robustly determine match winners and losers, including handling 'BYE' scenarios and ensuring accurate knockout progression. - Added logic to reset knockout matches with optional class filtering.
This commit is contained in:
@@ -421,9 +421,9 @@ export const reopenMatch = async (req, res) => {
|
||||
|
||||
export const deleteKnockoutMatches = async (req, res) => {
|
||||
const { authcode: token } = req.headers;
|
||||
const { clubId, tournamentId } = req.body;
|
||||
const { clubId, tournamentId, classId } = req.body;
|
||||
try {
|
||||
await tournamentService.resetKnockout(token, clubId, tournamentId);
|
||||
await tournamentService.resetKnockout(token, clubId, tournamentId, classId);
|
||||
// Emit Socket-Event
|
||||
emitTournamentChanged(clubId, tournamentId);
|
||||
res.status(200).json({ message: "K.o.-Runde gelöscht" });
|
||||
|
||||
Reference in New Issue
Block a user