mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +00:00
Hide share button when it should not be available
This commit is contained in:
parent
f1e132a909
commit
b9ad5bc633
@ -21,10 +21,9 @@ struct ShareButton<LabelView: View>: View {
|
||||
|
||||
@ViewBuilder var body: some View {
|
||||
// TODO: this should work with other content item types
|
||||
if let video = contentItem.video {
|
||||
Menu {
|
||||
if let video = contentItem.video,
|
||||
!video.localStreamIsFile
|
||||
{
|
||||
if !video.localStreamIsFile {
|
||||
if video.localStreamIsRemoteURL {
|
||||
remoteURLAction
|
||||
} else {
|
||||
@ -43,6 +42,7 @@ struct ShareButton<LabelView: View>: View {
|
||||
.frame(maxWidth: 60)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private var instanceActions: some View {
|
||||
Group {
|
||||
|
Loading…
Reference in New Issue
Block a user