From eb25ca7af5709bf3e068ef2063f10dde79f7e550 Mon Sep 17 00:00:00 2001 From: barry Date: Thu, 1 Sep 2022 21:03:41 -0400 Subject: [PATCH] Pass lib ID to toolbar so it can refresh state when clearing issues. Fixes #694 --- client/components/app/BookShelfToolbar.vue | 6 ++++-- client/pages/library/_library/bookshelf/_id.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/components/app/BookShelfToolbar.vue b/client/components/app/BookShelfToolbar.vue index 24435459..bbdbc802 100644 --- a/client/components/app/BookShelfToolbar.vue +++ b/client/components/app/BookShelfToolbar.vue @@ -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; } - \ No newline at end of file + diff --git a/client/pages/library/_library/bookshelf/_id.vue b/client/pages/library/_library/bookshelf/_id.vue index ed71ba7a..40ba6ec2 100644 --- a/client/pages/library/_library/bookshelf/_id.vue +++ b/client/pages/library/_library/bookshelf/_id.vue @@ -1,6 +1,6 @@ @@ -42,4 +42,4 @@ export default { }, methods: {} } - \ No newline at end of file +