mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
drop 'link' from 'Delete link' menu option
This commit is contained in:
parent
4954aee4ad
commit
89b7fe2bee
5 changed files with 21 additions and 24 deletions
|
|
@ -195,7 +195,7 @@ import Views
|
|||
itemToRemove = item
|
||||
confirmationShown = true
|
||||
},
|
||||
label: { Label("Delete Link", systemImage: "trash") }
|
||||
label: { Label("Delete", systemImage: "trash") }
|
||||
)
|
||||
if FeatureFlag.enableSnooze {
|
||||
Button {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ import Views
|
|||
itemToRemove = item
|
||||
confirmationShown = true
|
||||
},
|
||||
label: { Label("Delete Link", systemImage: "trash") }
|
||||
label: { Label("Delete", systemImage: "trash") }
|
||||
)
|
||||
if FeatureFlag.enableSnooze {
|
||||
Button {
|
||||
|
|
|
|||
|
|
@ -169,27 +169,25 @@ struct LinkItemDetailView: View {
|
|||
)
|
||||
.padding(.horizontal)
|
||||
.scaleEffect(navBarVisibilityRatio)
|
||||
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)
|
||||
Menu(
|
||||
content: {
|
||||
Group {
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Archive", systemImage: "archivebox") }
|
||||
)
|
||||
Button(
|
||||
action: {},
|
||||
label: { Label("Delete", systemImage: "trash") }
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
},
|
||||
label: {
|
||||
Image.profile
|
||||
.padding(.horizontal)
|
||||
.scaleEffect(navBarVisibilityRatio)
|
||||
}
|
||||
)
|
||||
}
|
||||
.frame(height: readerViewNavBarHeight * navBarVisibilityRatio)
|
||||
.opacity(navBarVisibilityRatio)
|
||||
|
|
|
|||
|
|
@ -15,5 +15,4 @@ public enum FeatureFlag {
|
|||
public static let enableShareButton = false
|
||||
public static let enableSnooze = false
|
||||
public static let showFeedItemTags = false
|
||||
public static let showLinkOptionsOnReaderView = false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public struct GridCard: View {
|
|||
)
|
||||
Button(
|
||||
action: { menuActionHandler(.delete) },
|
||||
label: { Label("Delete Link", systemImage: "trash") }
|
||||
label: { Label("Delete", systemImage: "trash") }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue