|
|
|
|
@ -134,8 +134,12 @@ struct ActivityView: View { |
|
|
|
|
ContentUnavailableView { |
|
|
|
|
Label("Une erreur est survenue", systemImage: "exclamationmark.circle.fill") |
|
|
|
|
} description: { |
|
|
|
|
Text(error.localizedDescription) |
|
|
|
|
Text("Tenup est peut-être en maintenance. " + error.localizedDescription) |
|
|
|
|
} actions: { |
|
|
|
|
Link(destination: URLs.tenup.url) { |
|
|
|
|
Text("Voir si tenup est en maintenance") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RowButtonView("D'accord.") { |
|
|
|
|
self.error = nil |
|
|
|
|
} |
|
|
|
|
@ -510,15 +514,32 @@ struct ActivityView: View { |
|
|
|
|
.padding() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
ContentUnavailableView { |
|
|
|
|
Label("Aucun tournoi", systemImage: "shield.slash") |
|
|
|
|
} description: { |
|
|
|
|
Text("Aucun tournoi ne correspond aux critères sélectionnés.") |
|
|
|
|
} actions: { |
|
|
|
|
FooterButtonView("modifier vos critères de recherche") { |
|
|
|
|
displaySearchView = true |
|
|
|
|
if federalDataViewModel.lastError == nil { |
|
|
|
|
ContentUnavailableView { |
|
|
|
|
Label("Aucun tournoi", systemImage: "shield.slash") |
|
|
|
|
} description: { |
|
|
|
|
Text("Aucun tournoi ne correspond aux critères sélectionnés.") |
|
|
|
|
} actions: { |
|
|
|
|
FooterButtonView("modifier vos critères de recherche") { |
|
|
|
|
displaySearchView = true |
|
|
|
|
} |
|
|
|
|
.padding() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
ContentUnavailableView { |
|
|
|
|
Label("Une erreur est survenue", systemImage: "exclamationmark.circle.fill") |
|
|
|
|
} description: { |
|
|
|
|
Text("Tenup est peut-être en maintenance, veuillez ré-essayer plus tard.") |
|
|
|
|
} actions: { |
|
|
|
|
Link(destination: URLs.tenup.url) { |
|
|
|
|
Text("Voir si tenup est en maintenance") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FooterButtonView("modifier vos critères de recherche") { |
|
|
|
|
displaySearchView = true |
|
|
|
|
} |
|
|
|
|
.padding() |
|
|
|
|
} |
|
|
|
|
.padding() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|