mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Use POST for hide/unhide
This commit is contained in:
parent
8fb763d81e
commit
def0cfb744
4 changed files with 19 additions and 43 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue