mirror of
https://github.com/yattee/yattee.git
synced 2025-05-18 12:31:09 +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 {
|
Button {
|
||||||
guard !inChannelView else {
|
guard !inChannelView else {
|
||||||
return
|
return
|
||||||
@ -333,6 +334,7 @@ struct VideoCell: View {
|
|||||||
#endif
|
#endif
|
||||||
.help("\(video.channel.name) Channel")
|
.help("\(video.channel.name) Channel")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private var additionalDetailsAvailable: Bool {
|
private var additionalDetailsAvailable: Bool {
|
||||||
video.publishedDate != nil || video.views != 0 ||
|
video.publishedDate != nil || video.views != 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user