mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-09 17:04:58 +02:00
Fix:Library scan toasts
This commit is contained in:
parent
85946dd1d5
commit
228d9cc301
4 changed files with 37 additions and 10 deletions
|
@ -47,12 +47,7 @@ export const getters = {
|
|||
|
||||
export const actions = {
|
||||
requestLibraryScan({ state, commit }, { libraryId, force }) {
|
||||
this.$axios.$get(`/api/libraries/${libraryId}/scan`, { params: { force } }).then(() => {
|
||||
this.$toast.success('Library scan started')
|
||||
}).catch((error) => {
|
||||
console.error('Failed to start scan', error)
|
||||
this.$toast.error('Failed to start scan')
|
||||
})
|
||||
return this.$axios.$get(`/api/libraries/${libraryId}/scan`, { params: { force } })
|
||||
},
|
||||
loadFolders({ state, commit }) {
|
||||
if (state.folders.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue