mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Add context menu to related items for queuing
This commit is contained in:
parent
1c61ad37a9
commit
9f5e9ea237
@ -9,6 +9,18 @@ struct RelatedView: View {
|
|||||||
Section(header: Text("Related")) {
|
Section(header: Text("Related")) {
|
||||||
ForEach(player.currentVideo!.related) { video in
|
ForEach(player.currentVideo!.related) { video in
|
||||||
PlayerQueueRow(item: PlayerQueueItem(video), fullScreen: .constant(false))
|
PlayerQueueRow(item: PlayerQueueItem(video), fullScreen: .constant(false))
|
||||||
|
.contextMenu {
|
||||||
|
Button {
|
||||||
|
player.playNext(video)
|
||||||
|
} label: {
|
||||||
|
Label("Play Next", systemImage: "text.insert")
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
player.enqueueVideo(video)
|
||||||
|
} label: {
|
||||||
|
Label("Play Last", systemImage: "text.append")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user