fix issue with merge

sync3
Razmig Sarkissian 1 month ago
parent 0a613e6376
commit 64d0d7c307
  1. 15
      PadelClub/Views/Tournament/TournamentView.swift

@ -256,6 +256,7 @@ struct TournamentView: View {
NavigationLink(value: Screen.stateSettings) { NavigationLink(value: Screen.stateSettings) {
Label("Gestion", systemImage: "trash") Label("Gestion", systemImage: "trash")
} }
.disabled(self.tournament.sharing)
} label: { } label: {
Label("Réglages", systemImage: "wrench.and.screwdriver") Label("Réglages", systemImage: "wrench.and.screwdriver")
@ -315,19 +316,7 @@ struct TournamentView: View {
NavigationLink(value: Screen.share) { NavigationLink(value: Screen.share) {
Label("Partager", systemImage: "square.and.arrow.up") Label("Partager", systemImage: "square.and.arrow.up")
} }
if self.tournament.sharing == nil {
Divider()
NavigationLink(value: Screen.stateSettings) {
Text("Gestion du tournoi")
Text("Annuler, supprimer ou terminer le tournoi")
}
Divider()
NavigationLink(value: Screen.stateSettings) {
Label("Tournoi", systemImage: "trash")
}
} label: { } label: {
LabelOptions() LabelOptions()
.popoverTip(tournamentRunningTip) .popoverTip(tournamentRunningTip)

Loading…
Cancel
Save