fix: expense form reset incorrectly after top-up submission #4
1 changed files with 1 additions and 1 deletions
fix: expense form reset incorrectly after top-up submission
commit
15dc582a77
|
|
@ -24,7 +24,7 @@ type AddExpenseFormProps struct {
|
|||
}
|
||||
|
||||
func (p AddExpenseFormProps) formAttrs() templ.Attributes {
|
||||
closeScript := "on htmx:afterOnLoad if event.detail.xhr.status == 200 then call window.tui.dialog.close('" + p.DialogID + "') then reset() me end"
|
||||
closeScript := "on htmx:afterOnLoad if event.detail.xhr.status == 200 then call window.tui.dialog.close('" + p.DialogID + "') then reset() me then show #item-selector-section end"
|
||||
if p.FromOverview {
|
||||
return templ.Attributes{
|
||||
"hx-post": "/app/spaces/" + p.Space.ID + "/expenses?from=overview",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue