mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Update:Confirmation when clicking force re-scan #591
This commit is contained in:
parent
228d9cc301
commit
eba37c46cb
@ -84,15 +84,17 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
forceScan() {
|
forceScan() {
|
||||||
this.$store
|
if (confirm(`Force Re-Scan will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be probed/parsed to be used for the library item.\n\nAre you sure you want to force re-scan?`)) {
|
||||||
.dispatch('libraries/requestLibraryScan', { libraryId: this.library.id, force: 1 })
|
this.$store
|
||||||
.then(() => {
|
.dispatch('libraries/requestLibraryScan', { libraryId: this.library.id, force: 1 })
|
||||||
this.$toast.success('Library scan started')
|
.then(() => {
|
||||||
})
|
this.$toast.success('Library scan started')
|
||||||
.catch((error) => {
|
})
|
||||||
console.error('Failed to start scan', error)
|
.catch((error) => {
|
||||||
this.$toast.error('Failed to start scan')
|
console.error('Failed to start scan', error)
|
||||||
})
|
this.$toast.error('Failed to start scan')
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteClick() {
|
deleteClick() {
|
||||||
if (this.isMain) return
|
if (this.isMain) return
|
||||||
|
Loading…
Reference in New Issue
Block a user