Add:Lazy bookshelf

This commit is contained in:
advplyr
2021-12-04 19:56:29 -06:00
parent 446c6756ed
commit 37d3021302
43 changed files with 2264 additions and 666 deletions
+7 -3
View File
@@ -105,6 +105,9 @@ export default {
}
},
computed: {
isSocketConnected() {
return this.$store.state.socketConnected
},
hasStoragePermission() {
return this.$store.state.hasStoragePermission
},
@@ -158,9 +161,10 @@ export default {
await this.searchFolder()
var audiobooks = this.$store.state.audiobooks.audiobooks || []
if (audiobooks.length) {
this.$store.dispatch('downloads/linkOrphanDownloads', audiobooks)
// var audiobooks = this.$store.state.audiobooks.audiobooks || []
// if (audiobooks.length) {
if (this.isSocketConnected) {
this.$store.dispatch('downloads/linkOrphanDownloads')
}
}
},