From d19b1247fd5f4c6fc66463dde01a06cc761a89ad Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 27 Mar 2025 09:33:15 +0100 Subject: [PATCH] add button to import from other tournaments when no teams --- .../Tournament/Screen/InscriptionManagerView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift b/PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift index 536d27e..7f7fbb4 100644 --- a/PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift +++ b/PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift @@ -254,6 +254,8 @@ struct InscriptionManagerView: View { navigation.path.append(Screen.settings) } } + + _importTeamsMenuView(title: "Importer des paires d'un autre tournoi") } } } @@ -418,7 +420,7 @@ struct InscriptionManagerView: View { } Divider() - _importTeamsMenuView() + _importTeamsMenuView(title: "Importer des paires") _sharingTeamsMenuView() } else { @@ -450,7 +452,7 @@ struct InscriptionManagerView: View { Divider() - _importTeamsMenuView() + _importTeamsMenuView(title: "Importer des paires") Button { presentImportView = true @@ -488,12 +490,12 @@ struct InscriptionManagerView: View { } } - private func _importTeamsMenuView() -> some View { + private func _importTeamsMenuView(title: String) -> some View { NavigationLink { ConsolationTournamentImportView() .environment(tournament) } label: { - Label("Importer des paires", systemImage: "square.and.arrow.down") + Label(title, systemImage: "square.and.arrow.down") } }