|
|
|
|
@ -85,20 +85,20 @@ struct PlayerBlockView: View { |
|
|
|
|
.opacity(0) |
|
|
|
|
|
|
|
|
|
if let team { |
|
|
|
|
if let teamScore, teamScore.luckyLoser != nil, match.isLoserBracket == false { |
|
|
|
|
Text("Repêchée").italic().font(.caption) |
|
|
|
|
} |
|
|
|
|
VStack(alignment: .leading) { |
|
|
|
|
if let teamScore, teamScore.luckyLoser != nil, match.isLoserBracket == false { |
|
|
|
|
Text("Repêchée").italic().font(.caption) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if let teamName = team.name { |
|
|
|
|
Text(teamName).foregroundStyle(.secondary).font(.footnote) |
|
|
|
|
} else if team.players().isEmpty { |
|
|
|
|
if team.isWildCard() { |
|
|
|
|
Text("Place réservée wildcard") |
|
|
|
|
} else { |
|
|
|
|
Text("Place réservée") |
|
|
|
|
if let teamName = team.name { |
|
|
|
|
Text(teamName).foregroundStyle(.secondary).font(.footnote) |
|
|
|
|
} else if team.players().isEmpty { |
|
|
|
|
if team.isWildCard() { |
|
|
|
|
Text("Place réservée wildcard") |
|
|
|
|
} else { |
|
|
|
|
Text("Place réservée") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
VStack(alignment: .leading) { |
|
|
|
|
ForEach(team.players()) { player in |
|
|
|
|
Text(player.playerLabel()).lineLimit(1) |
|
|
|
|
.italic(player.isHere() == false) |
|
|
|
|
|