mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Refresh podcast episode table when new episodes are downloaded
This commit is contained in:
		
							parent
							
								
									fbe228a4f8
								
							
						
					
					
						commit
						a0eb6bd3dc
					
				@ -87,7 +87,7 @@ export default {
 | 
				
			|||||||
  watch: {
 | 
					  watch: {
 | 
				
			||||||
    libraryItem: {
 | 
					    libraryItem: {
 | 
				
			||||||
      handler() {
 | 
					      handler() {
 | 
				
			||||||
        this.init()
 | 
					        this.refresh()
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
@ -515,6 +515,10 @@ export default {
 | 
				
			|||||||
    filterSortChanged() {
 | 
					    filterSortChanged() {
 | 
				
			||||||
      this.init()
 | 
					      this.init()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    refresh() {
 | 
				
			||||||
 | 
					      this.episodesCopy = this.episodes.map((ep) => ({ ...ep }))
 | 
				
			||||||
 | 
					      this.init()
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    init() {
 | 
					    init() {
 | 
				
			||||||
      this.destroyEpisodeComponents()
 | 
					      this.destroyEpisodeComponents()
 | 
				
			||||||
      this.totalEpisodes = this.episodesList.length
 | 
					      this.totalEpisodes = this.episodesList.length
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user