- Fix nil checks

- Enable add arr to config page
- Other minor fixes
This commit is contained in:
Mukhtar Akere
2025-04-27 23:43:19 +01:00
parent a3e64cc269
commit f977c52571
6 changed files with 41 additions and 35 deletions

View File

@@ -241,6 +241,7 @@ func (ui *Handler) handleUpdateConfig(w http.ResponseWriter, r *http.Request) {
DownloadUncached: a.DownloadUncached,
})
}
currentConfig.Arrs = updatedConfig.Arrs
if err := currentConfig.Save(); err != nil {
http.Error(w, "Error saving config: "+err.Error(), http.StatusInternalServerError)
return

View File

@@ -228,7 +228,7 @@
<div class="setup-step d-none" id="step4">
<div class="section mb-5">
<div id="arrConfigs"></div>
<div class="mb-3 d-none">
<div class="mb-3">
<button type="button" id="addArrBtn" class="btn btn-secondary">
<i class="bi bi-plus"></i> Add New Arr
</button>