diff options
Diffstat (limited to 'internal/handlers/settings.go')
| -rw-r--r-- | internal/handlers/settings.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/handlers/settings.go b/internal/handlers/settings.go index 28988b1..43fce20 100644 --- a/internal/handlers/settings.go +++ b/internal/handlers/settings.go @@ -17,6 +17,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { toggles, _ := h.store.GetFeatureToggles() syncLog, _ := h.store.GetRecentSyncLog(20) agents, _ := h.store.GetAllAgents() + buckets, _ := BuildBucketSummaries(h.store) + projects, _ := h.store.GetProjects() + labels, _ := h.store.GetLabelColors() // Group configs by source bySource := make(map[string][]models.SourceConfig) @@ -30,6 +33,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { Toggles []models.FeatureToggle SyncLog []store.SyncLogEntry Agents []models.Agent + Buckets []models.BucketSummary + Projects []models.Project + Labels []models.LabelColor CSRFToken string WebAuthnEnabled bool }{ @@ -38,6 +44,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { Toggles: toggles, SyncLog: syncLog, Agents: agents, + Buckets: buckets, + Projects: projects, + Labels: labels, CSRFToken: auth.GetCSRFTokenFromContext(r.Context()), WebAuthnEnabled: h.WebAuthnEnabled, } |
