From 7d4e7ce2c056353e4c1708d38c1fa08058a140c8 Mon Sep 17 00:00:00 2001 From: Nick Thomson Date: Mon, 19 Sep 2022 16:29:24 +0100 Subject: [PATCH] Initial commit --- client/components/app/Appbar.vue | 8 ++- .../modals/BatchQuickMatchModel.vue | 70 +++++++++++++++++++ client/store/globals.js | 5 ++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 client/components/modals/BatchQuickMatchModel.vue diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index cc417739..842d559f 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -49,6 +49,9 @@

{{ numLibraryItemsSelected }} Selected

+ + + @@ -210,7 +213,10 @@ export default { }, setBookshelfTotalEntities(totalEntities) { this.totalEntities = totalEntities - } + }, + batchAutoMatchClick() { + this.$store.commit('globals/setShowBatchQuickMatchModal', true) + }, }, mounted() { this.$eventBus.$on('bookshelf-total-entities', this.setBookshelfTotalEntities) diff --git a/client/components/modals/BatchQuickMatchModel.vue b/client/components/modals/BatchQuickMatchModel.vue new file mode 100644 index 00000000..d02c39f4 --- /dev/null +++ b/client/components/modals/BatchQuickMatchModel.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/client/store/globals.js b/client/store/globals.js index 21a31d5a..8625b22e 100644 --- a/client/store/globals.js +++ b/client/store/globals.js @@ -14,6 +14,7 @@ export const state = () => ({ selectedAuthor: null, isCasting: false, // Actively casting isChromecastInitialized: false, // Script loaded + showBatchQuickMatchModal: false, dateFormats: [ { text: 'MM/DD/YYYY', @@ -108,5 +109,9 @@ export const mutations = { }, setCasting(state, val) { state.isCasting = val + }, + setShowBatchQuickMatchModal(state, val) { + console.log("setShowBatchQuickMatchModal: " + val) + state.showBatchQuickMatchModal = val } } \ No newline at end of file