fix registion issues not displayed

main
Razmig Sarkissian 4 weeks ago
parent 43f5ac97a4
commit 8379eccfb6
  1. 11
      PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift

@ -271,9 +271,7 @@ struct InscriptionManagerView: View {
// await _refreshList(forced: true)
// }
.onAppear {
if tournament.enableOnlineRegistration == false || refreshStatus == true {
_setHash(currentSelectedSortedTeams: selectedSortedTeams)
}
_setHash(currentSelectedSortedTeams: selectedSortedTeams)
}
.onDisappear {
_handleHashDiff(selectedSortedTeams: selectedSortedTeams)
@ -942,14 +940,9 @@ struct InscriptionManagerView: View {
if tournament.enableOnlineRegistration {
LabeledContent {
Text(tournament.unsortedTeams().filter({ $0.hasRegisteredOnline() }).count.formatted())
.font(.largeTitle)
.fontWeight(.bold)
} label: {
Text("Inscriptions en ligne")
if let refreshResult {
Text(refreshResult).foregroundStyle(.secondary)
} else {
Text(" ")
}
}
// RowButtonView("Rafraîchir les inscriptions en ligne") {

Loading…
Cancel
Save