Filters: Add current editing keyword on save
This commit is contained in:
parent
aee6459bcf
commit
0c13cbd61f
|
@ -255,6 +255,11 @@ struct EditFilterView: View {
|
|||
private var saveButton: some View {
|
||||
Button {
|
||||
Task {
|
||||
if !newKeyword.isEmpty {
|
||||
await addKeyword(name: newKeyword)
|
||||
newKeyword = ""
|
||||
focusedField = .newKeyword
|
||||
}
|
||||
await saveFilter()
|
||||
dismiss()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue