mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix ItemSlider component select
This commit is contained in:
		
							parent
							
								
									f541bc2159
								
							
						
					
					
						commit
						514fb5f7da
					
				@ -192,25 +192,15 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {
 | 
			
		||||
    this.setScrollVars()
 | 
			
		||||
    switch (this.type) {
 | 
			
		||||
      case 'series':
 | 
			
		||||
        return
 | 
			
		||||
      case 'authors':
 | 
			
		||||
        return
 | 
			
		||||
      default:
 | 
			
		||||
        this.$eventBus.$on('bookshelf_clear_selection', this.clearSelectedEntities)
 | 
			
		||||
        this.$eventBus.$on('item-selected', this.itemSelectedEvt)
 | 
			
		||||
    if (['book', 'podcast', 'episode'].includes(this.type)) {
 | 
			
		||||
      this.$eventBus.$on('bookshelf_clear_selection', this.clearSelectedEntities)
 | 
			
		||||
      this.$eventBus.$on('item-selected', this.itemSelectedEvt)
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  beforeDestroy() {
 | 
			
		||||
    switch (this.type) {
 | 
			
		||||
      case 'series':
 | 
			
		||||
        return
 | 
			
		||||
      case 'authors':
 | 
			
		||||
        return
 | 
			
		||||
      default:
 | 
			
		||||
        this.$eventBus.$off('bookshelf_clear_selection', this.clearSelectedEntities)
 | 
			
		||||
        this.$eventBus.$off('item-selected', this.itemSelectedEvt)
 | 
			
		||||
    if (['book', 'podcast', 'episode'].includes(this.type)) {
 | 
			
		||||
      this.$eventBus.$off('bookshelf_clear_selection', this.clearSelectedEntities)
 | 
			
		||||
      this.$eventBus.$off('item-selected', this.itemSelectedEvt)
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user