mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Confirm delete
This commit is contained in:
parent
9e32966e1b
commit
35e6e3d7ae
1 changed files with 4 additions and 3 deletions
|
|
@ -519,10 +519,11 @@ struct AnimatingCellHeight: AnimatableModifier {
|
|||
Button("Archive", action: {
|
||||
viewModel.setLinkArchived(dataService: dataService, objectID: item.objectID, archived: true)
|
||||
})
|
||||
Button("Delete", action: {
|
||||
viewModel.removeLink(dataService: dataService, objectID: item.objectID)
|
||||
Button("Remove", action: {
|
||||
itemToRemove = item
|
||||
confirmationShown = true
|
||||
})
|
||||
if FeaturedItemFilter(rawValue: viewModel.featureFilter) == .continueReading {
|
||||
if FeaturedItemFilter(rawValue: viewModel.featureFilter) != .pinned {
|
||||
Button("Mark Read", action: {
|
||||
viewModel.markRead(dataService: dataService, item: item)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue