Filters: Add current editing keyword on save

This commit is contained in:
Thomas Ricouard 2024-01-01 21:29:38 +01:00
parent aee6459bcf
commit 0c13cbd61f

View File

@ -255,6 +255,11 @@ struct EditFilterView: View {
private var saveButton: some View { private var saveButton: some View {
Button { Button {
Task { Task {
if !newKeyword.isEmpty {
await addKeyword(name: newKeyword)
newKeyword = ""
focusedField = .newKeyword
}
await saveFilter() await saveFilter()
dismiss() dismiss()
} }