mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
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
Block a user