Add: Search page, Add: Bookshelf list view, Fix: Audiobook progress sync, Fix: Download audiobook button, Change: User audiobook data to use SQL table

This commit is contained in:
advplyr
2021-11-19 20:00:34 -06:00
parent b6dd37b7f6
commit 3b6e7e1ce2
16 changed files with 908 additions and 1619 deletions
+6
View File
@@ -36,6 +36,9 @@ export const mutations = {
state.showModal = val
},
setDownload(state, download) {
if (!download || !download.id) {
return
}
var index = state.downloads.findIndex(d => d.id === download.id)
if (index >= 0) {
state.downloads.splice(index, 1, download)
@@ -44,6 +47,9 @@ export const mutations = {
}
},
addUpdateDownload(state, download) {
if (!download || !download.id) {
return
}
var index = state.downloads.findIndex(d => d.id === download.id)
if (index >= 0) {
state.downloads.splice(index, 1, download)