diff --git a/Shared/Views/ChannelVideosView.swift b/Shared/Views/ChannelVideosView.swift index 40d14dde..704063d4 100644 --- a/Shared/Views/ChannelVideosView.swift +++ b/Shared/Views/ChannelVideosView.swift @@ -160,6 +160,17 @@ struct ChannelVideosView: View { } } } + .alert(isPresented: $navigation.presentingUnsubscribeAlert) { + Alert( + title: Text( + "Are you sure you want to unsubscribe from \(channel.name)?" + ), + primaryButton: .destructive(Text("Unsubscribe")) { + subscriptions.unsubscribe(channel.id) + }, + secondaryButton: .cancel() + ) + } } private var contentItem: ContentItem {