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