Fix remove attachment menu item not being marked destructive
This commit is contained in:
parent
6eee97759e
commit
2ee34acbad
|
@ -37,9 +37,9 @@ struct ComposeAttachmentRow: View {
|
|||
}
|
||||
}
|
||||
|
||||
Button(action: self.removeAttachment) {
|
||||
Button(role: .destructive, action: self.removeAttachment) {
|
||||
Label("Delete", systemImage: "trash")
|
||||
}.foregroundStyle(.red)
|
||||
}
|
||||
} previewIfAvailable: {
|
||||
ComposeAttachmentImage(attachment: attachment, fullSize: true)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue