mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 17:24:57 +02:00
Add:Scan button on libraries table
This commit is contained in:
parent
d7264f8c22
commit
58b9a42c84
6 changed files with 17 additions and 22 deletions
|
@ -123,15 +123,6 @@ export default {
|
|||
init(payload) {
|
||||
console.log('Init Payload', payload)
|
||||
|
||||
// Remove any current scans that are no longer running
|
||||
var currentScans = [...this.$store.state.scanners.libraryScans]
|
||||
currentScans.forEach((ls) => {
|
||||
if (!payload.librariesScanning || !payload.librariesScanning.find((_ls) => _ls.id === ls.id)) {
|
||||
this.$toast.dismiss(ls.toastId)
|
||||
this.$store.commit('scanners/remove', ls)
|
||||
}
|
||||
})
|
||||
|
||||
if (payload.usersOnline) {
|
||||
this.$store.commit('users/setUsersOnline', payload.usersOnline)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue