mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Pass lib ID to toolbar so it can refresh state when clearing issues. Fixes #694
This commit is contained in:
		
							parent
							
								
									149f52b33c
								
							
						
					
					
						commit
						eb25ca7af5
					
				| @ -89,7 +89,8 @@ export default { | ||||
|     authors: { | ||||
|       type: Array, | ||||
|       default: () => [] | ||||
|     } | ||||
|     }, | ||||
|     libraryId: String | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
| @ -215,6 +216,7 @@ export default { | ||||
|             this.$toast.success('Removed library items with issues') | ||||
|             this.$router.push(`/library/${this.currentLibraryId}/bookshelf`) | ||||
|             this.processingIssues = false | ||||
|             this.$store.dispatch('libraries/fetch', this.libraryId) | ||||
|           }) | ||||
|           .catch((error) => { | ||||
|             console.error('Failed to remove library items with issues', error) | ||||
| @ -302,4 +304,4 @@ export default { | ||||
| #toolbar { | ||||
|   box-shadow: 0px 8px 6px #111111aa; | ||||
| } | ||||
| </style> | ||||
| </style> | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| <template> | ||||
|   <div class="page" :class="streamLibraryItem ? 'streaming' : ''"> | ||||
|     <app-book-shelf-toolbar :page="id || ''" :view-mode.sync="viewMode" /> | ||||
|     <app-book-shelf-toolbar :page="id || ''" :view-mode.sync="viewMode" :library-id="libraryId"/> | ||||
|     <app-lazy-bookshelf :page="id || ''" :view-mode="viewMode" /> | ||||
|   </div> | ||||
| </template> | ||||
| @ -42,4 +42,4 @@ export default { | ||||
|   }, | ||||
|   methods: {} | ||||
| } | ||||
| </script> | ||||
| </script> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user