From 3f21d10338afe8eab699aaaea060556579e4b3c3 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 10:33:21 +0100 Subject: viewer: Some renaming for better clarity Implemented a basic display of filenames with basic navigation --- viewer/src/store/galleryStore.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'viewer/src/store') diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index 63e5109..4751561 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts @@ -7,9 +7,9 @@ const VuexModule = createModule({ export default class GalleryStore extends VuexModule { - galleryItems: Gallery.Item[] = []; + galleryItems: Gallery.Item | null = null; - @mutation setGalleryItems(galleryItems: Gallery.Item[]) { + @mutation setGalleryItems(galleryItems: Gallery.Item) { this.galleryItems = galleryItems; } @@ -18,4 +18,5 @@ export default class GalleryStore extends VuexModule { .then(response => response.json()) .then(this.setGalleryItems); } + } \ No newline at end of file -- cgit v1.2.3