mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Don't show empty channel button
This commit is contained in:
parent
a1ade66594
commit
59eda3af26
@ -303,7 +303,8 @@ struct VideoCell: View {
|
||||
}
|
||||
}
|
||||
|
||||
private func channelButton(badge: Bool = true) -> some View {
|
||||
@ViewBuilder private func channelButton(badge: Bool = true) -> some View {
|
||||
if !video.channel.name.isEmpty {
|
||||
Button {
|
||||
guard !inChannelView else {
|
||||
return
|
||||
@ -333,6 +334,7 @@ struct VideoCell: View {
|
||||
#endif
|
||||
.help("\(video.channel.name) Channel")
|
||||
}
|
||||
}
|
||||
|
||||
private var additionalDetailsAvailable: Bool {
|
||||
video.publishedDate != nil || video.views != 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user