|
|
|
|
@ -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") { |
|
|
|
|
|