mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-31 23:57:15 +02:00
Add:Lazy bookshelf
This commit is contained in:
+7
-3
@@ -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')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user