- Fix nil checks
- Enable add arr to config page - Other minor fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user