|
|
|
|
@ -66,24 +66,28 @@ struct GroupStageTeamView: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
if team.qualified == false { |
|
|
|
|
RowButtonView("Qualifier l'équipe", role: .destructive) { |
|
|
|
|
team.qualified = true |
|
|
|
|
//team.bracketPosition = nil |
|
|
|
|
_save() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
RowButtonView("Annuler la qualification", role: .destructive) { |
|
|
|
|
team.qualified = false |
|
|
|
|
groupStage.tournamentObject()?.resetTeamScores(in: team.bracketPosition) |
|
|
|
|
team.bracketPosition = nil |
|
|
|
|
_save() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
if team.qualified == false { |
|
|
|
|
RowButtonView("Qualifier l'équipe", role: .destructive) { |
|
|
|
|
team.qualified = true |
|
|
|
|
//team.bracketPosition = nil |
|
|
|
|
_save() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
RowButtonView("Annuler la qualification", role: .destructive) { |
|
|
|
|
team.qualified = false |
|
|
|
|
groupStage.tournamentObject()?.resetTeamScores(in: team.bracketPosition) |
|
|
|
|
team.bracketPosition = nil |
|
|
|
|
_save() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if groupStage.tournamentObject()?.hasEnded() == false { |
|
|
|
|
if team.qualified == false { |
|
|
|
|
Section { |
|
|
|
|
RowButtonView("Retirer de la poule", role: .destructive) { |
|
|
|
|
|