From 9b43fcc336907bd2b06dd705244e3d7ed597f41c Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Wed, 4 May 2022 08:43:18 +0300 Subject: [PATCH] Await fetching related media in the single result store (#1349) * Await fetching related media in the single result store * Fix fetching related media both on the server and on the client * Simplify typing hacks * Stop showing 'Load more' button in the related images --- .../VImageDetails/VRelatedImages.vue | 2 +- src/components/VImageGrid/VImageGrid.vue | 12 +- src/locales/po-files/openverse.pot | 7 +- src/pages/audio/_id.vue | 60 +++---- src/pages/image/_id.vue | 149 ++++++++++-------- src/stores/media/single-result.ts | 78 ++++++--- .../specs/stores/single-result-store.spec.js | 2 +- 7 files changed, 182 insertions(+), 128 deletions(-) diff --git a/src/components/VImageDetails/VRelatedImages.vue b/src/components/VImageDetails/VRelatedImages.vue index a713a002ad..d500675ff1 100644 --- a/src/components/VImageDetails/VRelatedImages.vue +++ b/src/components/VImageDetails/VRelatedImages.vue @@ -5,7 +5,7 @@ diff --git a/src/components/VImageGrid/VImageGrid.vue b/src/components/VImageGrid/VImageGrid.vue index 6d6226eb3b..0a1d7ec8dd 100644 --- a/src/components/VImageGrid/VImageGrid.vue +++ b/src/components/VImageGrid/VImageGrid.vue @@ -10,7 +10,7 @@
{{ fetchState.fetchingError }}
-