From fc36e86db73ece65cabdd38bcee92b633b79fff6 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 31 Mar 2023 18:00:45 -0500 Subject: [PATCH] Update:Match tab show current cover and include resolutions #1605 --- client/components/modals/item/tabs/Cover.vue | 2 +- client/components/modals/item/tabs/Match.vue | 26 ++++++++++++++------ client/store/globals.js | 6 ++--- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/client/components/modals/item/tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue index 4dcdac6b..3cbad218 100644 --- a/client/components/modals/item/tabs/Cover.vue +++ b/client/components/modals/item/tabs/Cover.vue @@ -2,7 +2,7 @@
- +
diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index c3390fe4..8cf49bbd 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -34,13 +34,25 @@
-
- - -
- - - +
+
+ + +
+ +
+
+

New

+ + + +
+
+

Current

+ + + +
diff --git a/client/store/globals.js b/client/store/globals.js index 9c126a97..693d2fb1 100644 --- a/client/store/globals.js +++ b/client/store/globals.js @@ -99,14 +99,14 @@ export const getters = { return `${rootState.routerBasePath}/api/items/${libraryItemId}/cover?token=${userToken}&ts=${lastUpdate}` }, - getLibraryItemCoverSrcById: (state, getters, rootState, rootGetters) => (libraryItemId, placeholder = null) => { + getLibraryItemCoverSrcById: (state, getters, rootState, rootGetters) => (libraryItemId, placeholder = null, raw = false) => { if (!placeholder) placeholder = `${rootState.routerBasePath}/book_placeholder.jpg` if (!libraryItemId) return placeholder var userToken = rootGetters['user/getToken'] if (process.env.NODE_ENV !== 'production') { // Testing - return `http://localhost:3333${rootState.routerBasePath}/api/items/${libraryItemId}/cover?token=${userToken}` + return `http://localhost:3333${rootState.routerBasePath}/api/items/${libraryItemId}/cover?token=${userToken}${raw ? '&raw=1' : ''}` } - return `${rootState.routerBasePath}/api/items/${libraryItemId}/cover?token=${userToken}` + return `${rootState.routerBasePath}/api/items/${libraryItemId}/cover?token=${userToken}${raw ? '&raw=1' : ''}` }, getIsBatchSelectingMediaItems: (state) => { return state.selectedMediaItems.length