mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 14:17:19 +02:00
Fix:Check network connection before redirecting local item to server item #958
This commit is contained in:
@@ -169,7 +169,7 @@ export default {
|
|||||||
libraryItem = await app.$db.getLocalLibraryItem(libraryItemId)
|
libraryItem = await app.$db.getLocalLibraryItem(libraryItemId)
|
||||||
console.log('Got lli', libraryItemId)
|
console.log('Got lli', libraryItemId)
|
||||||
// If library item is linked to the currently connected server then redirect to the page using the server library item id
|
// If library item is linked to the currently connected server then redirect to the page using the server library item id
|
||||||
if (libraryItem?.libraryItemId && libraryItem?.serverAddress === store.getters['user/getServerAddress']) {
|
if (libraryItem?.libraryItemId && libraryItem?.serverAddress === store.getters['user/getServerAddress'] && store.state.networkConnected) {
|
||||||
return redirect(`/item/${libraryItem.libraryItemId}`)
|
return redirect(`/item/${libraryItem.libraryItemId}`)
|
||||||
}
|
}
|
||||||
} else if (store.state.user.serverConnectionConfig) {
|
} else if (store.state.user.serverConnectionConfig) {
|
||||||
|
|||||||
Reference in New Issue
Block a user