feat: added notification system with toasts #160
This commit is contained in:
@@ -78,6 +78,7 @@ func HandleWorkoutNewComp(db *sql.DB) http.HandlerFunc {
|
||||
Reps: r.FormValue("reps"),
|
||||
}
|
||||
|
||||
w.Header().Set("HX-Trigger", `{"toast": "none|Workout added"}`)
|
||||
workout.WorkoutItemComp(wo, true).Render(r.Context(), w)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user