mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-23 06:18:08 +00:00
Filters: Add current editing keyword on save
This commit is contained in:
parent
aee6459bcf
commit
0c13cbd61f
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue