|
|
|
|
@ -172,8 +172,6 @@ struct TournamentView: View { |
|
|
|
|
TeamRestingView() |
|
|
|
|
case .stateSettings: |
|
|
|
|
TournamentStatusView(tournament: tournament) |
|
|
|
|
case .rankingGroupStageSetup: |
|
|
|
|
RankingGroupStageSetupView() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.environment(tournament) |
|
|
|
|
@ -265,17 +263,7 @@ struct TournamentView: View { |
|
|
|
|
Text("Poules, tableau, qualifiés sortants") |
|
|
|
|
.foregroundStyle(.secondary) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Divider() |
|
|
|
|
|
|
|
|
|
Button { |
|
|
|
|
navigation.path.append(Screen.stateSettings) |
|
|
|
|
} label: { |
|
|
|
|
Label("Gestion", systemImage: "trash") |
|
|
|
|
Text("Annuler, supprimer ou terminer le tournoi") |
|
|
|
|
} |
|
|
|
|
.disabled((self.tournament.sharing != nil)) |
|
|
|
|
|
|
|
|
|
} label: { |
|
|
|
|
Label("Réglages", systemImage: "wrench.and.screwdriver") |
|
|
|
|
Text("Événement, tournoi, structure") |
|
|
|
|
@ -332,25 +320,28 @@ struct TournamentView: View { |
|
|
|
|
Label("Imprimer", systemImage: "printer") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.share) { |
|
|
|
|
Label("Partager", systemImage: "square.and.arrow.up") |
|
|
|
|
if self.tournament.sharing == nil { |
|
|
|
|
NavigationLink(value: Screen.share) { |
|
|
|
|
Label("Partager", systemImage: "square.and.arrow.up") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Divider() |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.stateSettings) { |
|
|
|
|
Label("Tournoi", systemImage: "trash") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Button { |
|
|
|
|
navigation.path.append(Screen.stateSettings) |
|
|
|
|
} label: { |
|
|
|
|
Label("Clôture du tournoi", systemImage: "stop.fill") |
|
|
|
|
Text("Annuler, supprimer ou terminer le tournoi") |
|
|
|
|
if self.tournament.sharing == nil { |
|
|
|
|
Button { |
|
|
|
|
navigation.path.append(Screen.stateSettings) |
|
|
|
|
} label: { |
|
|
|
|
Label("Clôture du tournoi", systemImage: "stop.fill") |
|
|
|
|
Text("Annuler, supprimer ou terminer le tournoi") |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
Button { |
|
|
|
|
//todo RAZ se retirer du partage |
|
|
|
|
} label: { |
|
|
|
|
Label("Quitter la supervision", systemImage: "person.crop.circle.badge.minus") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} label: { |
|
|
|
|
LabelOptions() |
|
|
|
|
.popoverTip(tournamentRunningTip) |
|
|
|
|
|