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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/handlers/settings.go b/internal/handlers/settings.go
index 1eabdf5..fa1acee 100644
--- a/internal/handlers/settings.go
+++ b/internal/handlers/settings.go
@@ -30,7 +30,7 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) {
Toggles: toggles,
}
- if err := h.templates.ExecuteTemplate(w, "settings.html", data); err != nil {
+ if err := h.renderer.Render(w, "settings.html", data); err != nil {
JSONError(w, http.StatusInternalServerError, "Failed to render settings", err)
}
}
@@ -164,7 +164,7 @@ func (h *Handler) HandleGetSourceOptions(w http.ResponseWriter, r *http.Request)
Configs []models.SourceConfig
}{source, configs}
- HTMLResponse(w, h.templates, "settings-source-options", data)
+ HTMLResponse(w, h.renderer, "settings-source-options", data)
}
// HandleToggleFeature toggles a feature flag