flattening
This commit is contained in:
parent
e829562062
commit
5610b28254
3 changed files with 95 additions and 128 deletions
|
|
@ -82,7 +82,7 @@ func (h *Server) orders(r *http.Request) (templ.Component, int, error) {
|
|||
}
|
||||
|
||||
if r.Header.Get("HX-Request") == "true" {
|
||||
return templates.OrdersContent(orders, cakeCounts, specialCakes, firstStr, lastStr, specialFilter), http.StatusOK, nil
|
||||
return templates.MainContent("Panel główny", templates.OrdersContent(orders, cakeCounts, specialCakes, firstStr, lastStr, specialFilter)), http.StatusOK, nil
|
||||
}
|
||||
|
||||
counts, err := h.s.GetOrderCounts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue