mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-28 05:53:59 +02:00
Fix:Check network connection before redirecting local item to server item #958
This commit is contained in:
parent
5c60cd136c
commit
257a1ceb51
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue