mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-06 20:09:37 +00:00
Update providers users to fetch providers on demand
This commit is contained in:
parent
166e0442a0
commit
538a5065a4
7 changed files with 52 additions and 20 deletions
|
|
@ -96,6 +96,9 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
init() {
|
||||
// Fetch providers when modal is shown
|
||||
this.$store.dispatch('scanners/fetchProviders')
|
||||
|
||||
// If we don't have a set provider (first open of dialog) or we've switched library, set
|
||||
// the selected provider to the current library default provider
|
||||
if (!this.options.provider || this.lastUsedLibrary != this.currentLibraryId) {
|
||||
|
|
@ -127,8 +130,7 @@ export default {
|
|||
this.show = false
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue