mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 04:14:58 +02:00
Update:Remove scanner settings, add library scanner settings tab, add order of precedence
This commit is contained in:
parent
5ad9f507ba
commit
347b49f564
35 changed files with 764 additions and 809 deletions
|
@ -74,6 +74,11 @@ export default {
|
|||
}
|
||||
]
|
||||
if (this.isBookLibrary) {
|
||||
items.push({
|
||||
text: this.$strings.ButtonForceReScan,
|
||||
action: 'force-rescan',
|
||||
value: 'force-rescan'
|
||||
})
|
||||
items.push({
|
||||
text: this.$strings.ButtonMatchBooks,
|
||||
action: 'match-books',
|
||||
|
@ -95,8 +100,8 @@ export default {
|
|||
this.editClick()
|
||||
} else if (action === 'scan') {
|
||||
this.scan()
|
||||
} else if (action === 'force-scan') {
|
||||
this.forceScan()
|
||||
} else if (action === 'force-rescan') {
|
||||
this.scan(true)
|
||||
} else if (action === 'match-books') {
|
||||
this.matchAll()
|
||||
} else if (action === 'delete') {
|
||||
|
@ -121,9 +126,9 @@ export default {
|
|||
editClick() {
|
||||
this.$emit('edit', this.library)
|
||||
},
|
||||
scan() {
|
||||
scan(force = false) {
|
||||
this.$store
|
||||
.dispatch('libraries/requestLibraryScan', { libraryId: this.library.id })
|
||||
.dispatch('libraries/requestLibraryScan', { libraryId: this.library.id, force })
|
||||
.then(() => {
|
||||
this.$toast.success(this.$strings.ToastLibraryScanStarted)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue