fix(manage): HandleUpdateItemUI returns 204 for fetch callers
This commit is contained in:
parent
135bbd875f
commit
e1506d5d2c
1 changed files with 4 additions and 0 deletions
|
|
@ -783,6 +783,10 @@ func HandleUpdateItemUI(playlists *store.PlaylistStore, screens *store.ScreenSto
|
|||
return
|
||||
}
|
||||
notifier.NotifyChanged(screenSlug)
|
||||
if r.Header.Get("X-Requested-With") == "fetch" {
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
return
|
||||
}
|
||||
http.Redirect(w, r, "/manage/"+screenSlug+"?msg=saved", http.StatusSeeOther)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue