Update:Handle navigating to library item pages when server connection goes down

- Added loading indicator to library item page on initial request to server
- Redirect to downloaded item page if server item request fails
This commit is contained in:
advplyr
2024-02-04 15:46:26 -06:00
parent d03949f5d1
commit 8fc2058db8
4 changed files with 85 additions and 50 deletions
+4
View File
@@ -331,6 +331,10 @@ export default {
this.initListeners()
console.log(`[categories] mounted so fetching categories`)
this.fetchCategories()
if (this.$route.query.error) {
this.$toast.error(this.$route.query.error)
}
},
beforeDestroy() {
this.removeListeners()