refactor(components): extract breadcrumb into sub-components
fix(docs): document breadcrumb components refactor(sdk): migrate to new navigation components feat(sdk): create isolated sidebar component breaking(components): deprecate old topbar component feat(components): create new topbar components feat(components): create user dropdown feat(components): create breadcrumb feat(components): create navigation items docs(components): document new components perf(components): improve performance of sidebar test(components): add test for navigation components
This commit is contained in:
@@ -205,5 +205,11 @@ func handleDashboard(w http.ResponseWriter, r *http.Request) {
|
||||
tab = "overview"
|
||||
}
|
||||
data := views.DefaultDashboardData()
|
||||
|
||||
if r.Header.Get("HX-Request") == "true" {
|
||||
views.DashboardContent(data, tab).Render(r.Context(), w)
|
||||
return
|
||||
}
|
||||
|
||||
views.DashboardPage(data, tab).Render(r.Context(), w)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user