aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store
diff options
context:
space:
mode:
authorZero~Informatique2020-01-29 23:04:30 +0100
committerZero~Informatique2020-01-30 17:24:07 +0100
commit118666b4c3faeaeaf153a2ea7172764a3cbcffab (patch)
tree75fb4f082b447af11da95f4f4bb18f1f79123167 /viewer/src/store
parent15c806adec22239096a910b92b49fcfb964815bd (diff)
downloadldgallery-118666b4c3faeaeaf153a2ea7172764a3cbcffab.tar.gz
viewer: the loader now correctly waits for the json to be loaded and indexes to be processed before displaying the UI. resolves #61
Diffstat (limited to 'viewer/src/store')
-rw-r--r--viewer/src/store/galleryStore.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index 663340f..b2ff74e 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -61,7 +61,7 @@ export default class GalleryStore extends VuexModule {
61 61
62 // Fetches the gallery's JSON metadata 62 // Fetches the gallery's JSON metadata
63 @action async fetchGalleryItems(url: string) { 63 @action async fetchGalleryItems(url: string) {
64 fetch(url) 64 return fetch(url)
65 .then(response => response.json()) 65 .then(response => response.json())
66 .then(this.setGalleryItemsRoot) 66 .then(this.setGalleryItemsRoot)
67 .then(this.indexTags); 67 .then(this.indexTags);