feature: Customizable default directory, back and action icons (#326)

This commit is contained in:
James Read
2024-05-31 22:43:05 +00:00
committed by GitHub
parent ac0f3ab6f8
commit 238abc95ad
10 changed files with 38 additions and 12 deletions
+2
View File
@@ -28,6 +28,7 @@ type webUISettings struct {
CurrentVersion string
PageTitle string
SectionNavigationStyle string
DefaultIconForBack string
}
func findWebuiDir() string {
@@ -109,6 +110,7 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
CurrentVersion: updatecheck.CurrentVersion,
PageTitle: cfg.PageTitle,
SectionNavigationStyle: cfg.SectionNavigationStyle,
DefaultIconForBack: cfg.DefaultIconForBack,
})
_, err := w.Write([]byte(jsonRet))