Update providers users to fetch providers on demand

This commit is contained in:
mikiher 2025-10-19 18:57:27 +03:00
parent 166e0442a0
commit 538a5065a4
7 changed files with 52 additions and 20 deletions

View file

@ -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>