mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-02 05:24:58 +02:00
Fix ItemSlider component select
This commit is contained in:
parent
f541bc2159
commit
514fb5f7da
1 changed files with 6 additions and 16 deletions
|
@ -192,25 +192,15 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setScrollVars()
|
this.setScrollVars()
|
||||||
switch (this.type) {
|
if (['book', 'podcast', 'episode'].includes(this.type)) {
|
||||||
case 'series':
|
this.$eventBus.$on('bookshelf_clear_selection', this.clearSelectedEntities)
|
||||||
return
|
this.$eventBus.$on('item-selected', this.itemSelectedEvt)
|
||||||
case 'authors':
|
|
||||||
return
|
|
||||||
default:
|
|
||||||
this.$eventBus.$on('bookshelf_clear_selection', this.clearSelectedEntities)
|
|
||||||
this.$eventBus.$on('item-selected', this.itemSelectedEvt)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
switch (this.type) {
|
if (['book', 'podcast', 'episode'].includes(this.type)) {
|
||||||
case 'series':
|
this.$eventBus.$off('bookshelf_clear_selection', this.clearSelectedEntities)
|
||||||
return
|
this.$eventBus.$off('item-selected', this.itemSelectedEvt)
|
||||||
case 'authors':
|
|
||||||
return
|
|
||||||
default:
|
|
||||||
this.$eventBus.$off('bookshelf_clear_selection', this.clearSelectedEntities)
|
|
||||||
this.$eventBus.$off('item-selected', this.itemSelectedEvt)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue