summaryrefslogtreecommitdiff
path: root/internal/handlers/settings.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/settings.go')
-rw-r--r--internal/handlers/settings.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/handlers/settings.go b/internal/handlers/settings.go
index a780170..32e0215 100644
--- a/internal/handlers/settings.go
+++ b/internal/handlers/settings.go
@@ -16,6 +16,7 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) {
configs, _ := h.store.GetSourceConfigs()
toggles, _ := h.store.GetFeatureToggles()
syncLog, _ := h.store.GetRecentSyncLog(20)
+ agents, _ := h.store.GetAllAgents()
// Group configs by source
bySource := make(map[string][]models.SourceConfig)
@@ -28,6 +29,7 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) {
Sources []string
Toggles []models.FeatureToggle
SyncLog []store.SyncLogEntry
+ Agents []models.Agent
CSRFToken string
WebAuthnEnabled bool
}{
@@ -35,6 +37,7 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) {
Sources: []string{"trello", "todoist", "gcal", "gtasks"},
Toggles: toggles,
SyncLog: syncLog,
+ Agents: agents,
CSRFToken: auth.GetCSRFTokenFromContext(r.Context()),
WebAuthnEnabled: h.WebAuthnEnabled,
}