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

This commit is contained in:
barry 2022-09-01 21:03:41 -04:00
parent 149f52b33c
commit eb25ca7af5
2 changed files with 6 additions and 4 deletions

View File

@ -89,7 +89,8 @@ export default {
authors: { authors: {
type: Array, type: Array,
default: () => [] default: () => []
} },
libraryId: String
}, },
data() { data() {
return { return {
@ -215,6 +216,7 @@ export default {
this.$toast.success('Removed library items with issues') this.$toast.success('Removed library items with issues')
this.$router.push(`/library/${this.currentLibraryId}/bookshelf`) this.$router.push(`/library/${this.currentLibraryId}/bookshelf`)
this.processingIssues = false this.processingIssues = false
this.$store.dispatch('libraries/fetch', this.libraryId)
}) })
.catch((error) => { .catch((error) => {
console.error('Failed to remove library items with issues', error) console.error('Failed to remove library items with issues', error)

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="page" :class="streamLibraryItem ? 'streaming' : ''"> <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" /> <app-lazy-bookshelf :page="id || ''" :view-mode="viewMode" />
</div> </div>
</template> </template>