Use POST for hide/unhide

This commit is contained in:
DoctorDalek1963 2025-11-06 20:35:14 +00:00
parent 8fb763d81e
commit def0cfb744
No known key found for this signature in database
4 changed files with 19 additions and 43 deletions

View file

@ -588,9 +588,11 @@ export default {
callback: (confirmed) => {
if (confirmed) {
this.processingSeries = true
const endpoint = newIsHidden ? 'hide' : 'unhide'
const payload = {
makeHidden: newIsHidden
}
this.$axios
.$get(`/api/me/series/${this.seriesId}/${endpoint}`)
.$post(`/api/me/series/${this.seriesId}/hide`, payload)
.then(() => {
this.$toast.success(this.$strings.ToastSeriesUpdateSuccess)
})