mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create feature flag for showing menu options on link item detail view
This commit is contained in:
parent
2c1d010d6a
commit
0c4d68ae30
2 changed files with 21 additions and 18 deletions
|
|
@ -169,25 +169,27 @@ struct LinkItemDetailView: View {
|
|||
)
|
||||
.padding(.horizontal)
|
||||
.scaleEffect(navBarVisibilityRatio)
|
||||
Menu(
|
||||
content: {
|
||||
Group {
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Archive", systemImage: "archivebox") }
|
||||
)
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Delete Link", systemImage: "trash") }
|
||||
)
|
||||
if FeatureFlag.showLinkOptionsOnReaderView {
|
||||
Menu(
|
||||
content: {
|
||||
Group {
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Archive", systemImage: "archivebox") }
|
||||
)
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Delete Link", systemImage: "trash") }
|
||||
)
|
||||
}
|
||||
},
|
||||
label: {
|
||||
Image.profile
|
||||
.padding(.horizontal)
|
||||
.scaleEffect(navBarVisibilityRatio)
|
||||
}
|
||||
},
|
||||
label: {
|
||||
Image.profile
|
||||
.padding(.horizontal)
|
||||
.scaleEffect(navBarVisibilityRatio)
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
.frame(height: readerViewNavBarHeight * navBarVisibilityRatio)
|
||||
.opacity(navBarVisibilityRatio)
|
||||
|
|
|
|||
|
|
@ -15,4 +15,5 @@ public enum FeatureFlag {
|
|||
public static let enableShareButton = false
|
||||
public static let enableSnooze = false
|
||||
public static let showFeedItemTags = false
|
||||
public static let showLinkOptionsOnReaderView = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue