feat: redirect to expenses after add from overview

This commit is contained in:
juancwu 2026-02-07 19:37:05 +00:00
commit ccd6eaf9ee
2 changed files with 3 additions and 9 deletions

View file

@ -20,7 +20,7 @@ type AddExpenseFormProps struct {
Tags []*model.Tag
ListsWithItems []model.ListWithUncheckedItems
DialogID string // which dialog to close on success
FromOverview bool // if true, POSTs with ?from=overview for toast response
FromOverview bool // if true, POSTs with ?from=overview; server redirects to expenses page
}
func (p AddExpenseFormProps) formAttrs() templ.Attributes {