mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix ItemSlider component on search page
This commit is contained in:
parent
635f22ddfe
commit
f541bc2159
@ -83,8 +83,7 @@ export default {
|
|||||||
itemPropName: 'book-mount',
|
itemPropName: 'book-mount',
|
||||||
itemIdFunc: (item) => item.id
|
itemIdFunc: (item) => item.id
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
shelfOptions: null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -92,10 +91,7 @@ export default {
|
|||||||
return this.$store.getters['globals/getIsBatchSelectingMediaItems']
|
return this.$store.getters['globals/getIsBatchSelectingMediaItems']
|
||||||
},
|
},
|
||||||
options() {
|
options() {
|
||||||
if (!this.shelfOptions) {
|
return this.shelfOptionsByType[this.type]
|
||||||
this.shelfOptions = this.shelfOptionsByType[this.type]
|
|
||||||
}
|
|
||||||
return this.shelfOptions
|
|
||||||
},
|
},
|
||||||
itemIdFunc() {
|
itemIdFunc() {
|
||||||
return this.options.itemIdFunc
|
return this.options.itemIdFunc
|
||||||
@ -148,7 +144,6 @@ export default {
|
|||||||
},
|
},
|
||||||
updateSelectionMode(val) {
|
updateSelectionMode(val) {
|
||||||
const selectedMediaItems = this.$store.state.globals.selectedMediaItems
|
const selectedMediaItems = this.$store.state.globals.selectedMediaItems
|
||||||
|
|
||||||
this.items.forEach((item) => {
|
this.items.forEach((item) => {
|
||||||
let component = this.$refs[this.itemRefFunc(item)]
|
let component = this.$refs[this.itemRefFunc(item)]
|
||||||
if (!component || !component.length) return
|
if (!component || !component.length) return
|
||||||
|
Loading…
Reference in New Issue
Block a user