|
|
|
@ -113,24 +113,6 @@ struct TournamentBuildView: View { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
Section { |
|
|
|
#if DEBUG |
|
|
|
|
|
|
|
NavigationLink(value: Screen.rankings) { |
|
|
|
|
|
|
|
LabeledContent { |
|
|
|
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
|
|
|
Image(systemName: "exclamationmark.circle.fill") |
|
|
|
|
|
|
|
.foregroundStyle(.logoYellow) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
Image(systemName: "checkmark") |
|
|
|
|
|
|
|
.foregroundStyle(.green) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} label: { |
|
|
|
|
|
|
|
Text("Classement final des équipes") |
|
|
|
|
|
|
|
if tournament.publishRankings == false { |
|
|
|
|
|
|
|
Text("Vérifiez le classement avant de publier").foregroundStyle(.logoRed) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
if tournament.hasEnded() { |
|
|
|
if tournament.hasEnded() { |
|
|
|
NavigationLink(value: Screen.rankings) { |
|
|
|
NavigationLink(value: Screen.rankings) { |
|
|
|
LabeledContent { |
|
|
|
LabeledContent { |
|
|
|
@ -149,7 +131,6 @@ struct TournamentBuildView: View { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
if state == .running || state == .finished { |
|
|
|
if state == .running || state == .finished { |
|
|
|
TournamentInscriptionView(tournament: tournament) |
|
|
|
TournamentInscriptionView(tournament: tournament) |
|
|
|
TournamentBroadcastRowView(tournament: tournament) |
|
|
|
TournamentBroadcastRowView(tournament: tournament) |
|
|
|
|