drop 'link' from 'Delete link' menu option

This commit is contained in:
Satindar Dhillon 2022-03-08 10:41:45 -08:00
parent 4954aee4ad
commit 89b7fe2bee
5 changed files with 21 additions and 24 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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)

View file

@ -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
}

View file

@ -53,7 +53,7 @@ public struct GridCard: View {
)
Button(
action: { menuActionHandler(.delete) },
label: { Label("Delete Link", systemImage: "trash") }
label: { Label("Delete", systemImage: "trash") }
)
}
}