mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add unarchive and trash to grid context menu
This commit is contained in:
parent
48dfbdd0f9
commit
6617fa8413
1 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,14 @@ import Views
|
|||
action: { viewModel.itemUnderTitleEdit = item },
|
||||
label: { Label("Edit Info", systemImage: "info.circle") }
|
||||
)
|
||||
Button(
|
||||
action: { viewModel.setLinkArchived(dataService: dataService, objectID: item.objectID, archived: !item.isArchived) },
|
||||
label: { Label(item.isArchived ? "Unarchive" : "Archive", systemImage: "inbox") }
|
||||
)
|
||||
Button(
|
||||
action: { viewModel.removeLibraryItem(dataService: dataService, objectID: item.objectID) },
|
||||
label: { Label("Remove", systemImage: "trash") }
|
||||
)
|
||||
Button(
|
||||
action: { viewModel.itemUnderLabelEdit = item },
|
||||
label: { Label(item.labels?.count == 0 ? "Add Labels" : "Edit Labels", systemImage: "tag") }
|
||||
|
|
|
|||
Loading…
Reference in a new issue