From 4ccb4243f7bed691ed033bdb899d675fbd593e1e Mon Sep 17 00:00:00 2001 From: barry Date: Fri, 2 Sep 2022 18:20:38 -0400 Subject: [PATCH] Pass lib ID to toolbar so it can refresh state when clearing issues. Fixes #694 --- client/components/app/BookShelfToolbar.vue | 3 +-- client/pages/library/_library/bookshelf/_id.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/components/app/BookShelfToolbar.vue b/client/components/app/BookShelfToolbar.vue index bbdbc802..035e3d3e 100644 --- a/client/components/app/BookShelfToolbar.vue +++ b/client/components/app/BookShelfToolbar.vue @@ -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) diff --git a/client/pages/library/_library/bookshelf/_id.vue b/client/pages/library/_library/bookshelf/_id.vue index 40ba6ec2..3dc0826e 100644 --- a/client/pages/library/_library/bookshelf/_id.vue +++ b/client/pages/library/_library/bookshelf/_id.vue @@ -1,6 +1,6 @@