Add context menu action to delete draft
This commit is contained in:
parent
22b5d62ba1
commit
d4fa9c96e8
|
@ -31,6 +31,13 @@ struct DraftsView: View {
|
|||
} label: {
|
||||
DraftView(draft: draft)
|
||||
}
|
||||
.contextMenu {
|
||||
Button(role: .destructive) {
|
||||
draftsManager.remove(draft)
|
||||
} label: {
|
||||
Label("Delete Draft", systemImage: "trash")
|
||||
}
|
||||
}
|
||||
.onDrag {
|
||||
let activity = UserActivityManager.editDraftActivity(id: draft.id, accountID: mastodonController.accountInfo!.id)
|
||||
activity.displaysAuxiliaryScene = true
|
||||
|
|
Loading…
Reference in New Issue