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 {
|
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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue