mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 05:02:53 +00:00
Show a failed remote playlist load as an error with Retry
A remote playlist arrives with its title, so the body always rendered playlistContent and the errorView branch was never reached: a failed load showed the empty-playlist placeholder and no way to retry.
This commit is contained in:
@@ -412,6 +412,11 @@ struct UnifiedPlaylistDetailView: View {
|
||||
ProgressView()
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 40)
|
||||
} else if let errorMessage {
|
||||
// A remote playlist arrives with its title, so a failed load
|
||||
// lands in playlistContent rather than the body's error branch.
|
||||
errorView(errorMessage)
|
||||
.padding(.top, 40)
|
||||
} else {
|
||||
emptyPlaylistView
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user