Pass lib ID to toolbar so it can refresh state when clearing issues. Fixes #694

This commit is contained in:
barry 2022-09-02 18:20:38 -04:00
parent eb25ca7af5
commit 4ccb4243f7
2 changed files with 2 additions and 3 deletions

View File

@ -90,7 +90,6 @@ export default {
type: Array,
default: () => []
},
libraryId: String
},
data() {
return {
@ -216,7 +215,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)
this.$store.dispatch('libraries/fetch', this.currentLibraryId)
})
.catch((error) => {
console.error('Failed to remove library items with issues', error)

View File

@ -1,6 +1,6 @@
<template>
<div class="page" :class="streamLibraryItem ? 'streaming' : ''">
<app-book-shelf-toolbar :page="id || ''" :view-mode.sync="viewMode" :library-id="libraryId"/>
<app-book-shelf-toolbar :page="id || ''" :view-mode.sync="viewMode"/>
<app-lazy-bookshelf :page="id || ''" :view-mode="viewMode" />
</div>
</template>