mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-01 16:44:41 +02:00
Update:Show error when searching for episodes with no network connection
This commit is contained in:
parent
d10f33362e
commit
7ba810adb8
1 changed files with 7 additions and 1 deletions
|
@ -134,6 +134,9 @@ export default {
|
|||
isAdminOrUp() {
|
||||
return this.$store.getters['user/getIsAdminOrUp']
|
||||
},
|
||||
networkConnected() {
|
||||
return this.$store.state.networkConnected
|
||||
},
|
||||
libraryItemId() {
|
||||
return this.libraryItem ? this.libraryItem.id : null
|
||||
},
|
||||
|
@ -208,6 +211,10 @@ export default {
|
|||
}
|
||||
},
|
||||
async searchEpisodes() {
|
||||
if (!this.networkConnected) {
|
||||
return this.$toast.error('No network connection')
|
||||
}
|
||||
|
||||
if (!this.mediaMetadata.feedUrl) {
|
||||
return this.$toast.error('Podcast does not have an RSS Feed')
|
||||
}
|
||||
|
@ -236,7 +243,6 @@ export default {
|
|||
},
|
||||
setFilter(filter) {
|
||||
this.filterKey = filter
|
||||
console.log('Set filter', this.filterKey)
|
||||
this.showFiltersModal = false
|
||||
},
|
||||
showFilters() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue