mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Unwatched videos in subscriptions
This commit is contained in:
@@ -10,6 +10,8 @@ struct SubscriptionsView: View {
|
||||
@Default(.subscriptionsViewPage) private var subscriptionsViewPage
|
||||
@Default(.subscriptionsListingStyle) private var subscriptionsListingStyle
|
||||
|
||||
@ObservedObject private var feed = FeedModel.shared
|
||||
|
||||
var body: some View {
|
||||
SignInRequiredView(title: "Subscriptions".localized()) {
|
||||
switch subscriptionsViewPage {
|
||||
@@ -51,6 +53,24 @@ struct SubscriptionsView: View {
|
||||
|
||||
if subscriptionsViewPage == .feed {
|
||||
ListingStyleButtons(listingStyle: $subscriptionsListingStyle)
|
||||
|
||||
Button {
|
||||
feed.playUnwatchedFeed()
|
||||
} label: {
|
||||
Label("Play unwatched", systemImage: "play")
|
||||
}
|
||||
|
||||
Button {
|
||||
feed.markAllFeedAsWatched()
|
||||
} label: {
|
||||
Label("Mark all as watched", systemImage: "checkmark.circle.fill")
|
||||
}
|
||||
|
||||
Button {
|
||||
feed.markAllFeedAsUnwatched()
|
||||
} label: {
|
||||
Label("Mark all as unwatched", systemImage: "checkmark.circle")
|
||||
}
|
||||
}
|
||||
|
||||
Section {
|
||||
|
Reference in New Issue
Block a user