feat(tournament): add participant gave-up functionality and UI updates
- Implemented setParticipantGaveUp and setExternalParticipantGaveUp methods in tournamentController to handle participant resignation. - Updated ExternalTournamentParticipant and TournamentMember models to include a gaveUp field for tracking resignation status. - Enhanced tournamentRoutes to include new endpoints for updating gave-up status. - Modified TournamentGroupsTab and TournamentParticipantsTab components to display and manage gave-up status visually. - Added localization strings for "gave up" and related hints in German. - Updated TournamentResultsTab to reflect gave-up status in match results.
This commit is contained in:
@@ -88,6 +88,12 @@ const ExternalTournamentParticipant = sequelize.define('ExternalTournamentPartic
|
||||
type: DataTypes.BOOLEAN,
|
||||
allowNull: false,
|
||||
defaultValue: false
|
||||
},
|
||||
gaveUp: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
allowNull: false,
|
||||
defaultValue: false,
|
||||
field: 'gave_up'
|
||||
}
|
||||
}, {
|
||||
underscored: true,
|
||||
|
||||
@@ -30,6 +30,12 @@ const TournamentMember = sequelize.define('TournamentMember', {
|
||||
type: DataTypes.BOOLEAN,
|
||||
allowNull: false,
|
||||
defaultValue: false
|
||||
},
|
||||
gaveUp: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
allowNull: false,
|
||||
defaultValue: false,
|
||||
field: 'gave_up'
|
||||
}
|
||||
}, {
|
||||
underscored: true,
|
||||
|
||||
Reference in New Issue
Block a user