aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/galleryStore.ts
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 10:33:21 +0100
committerZero~Informatique2019-12-21 10:33:21 +0100
commit3f21d10338afe8eab699aaaea060556579e4b3c3 (patch)
treee6c9a51116b1cab9d6e44e21617bb7a1701ab463 /viewer/src/store/galleryStore.ts
parent9e4fdd6f38853d8a4a959901ab7902569de75484 (diff)
downloadldgallery-3f21d10338afe8eab699aaaea060556579e4b3c3.tar.gz
viewer:
Some renaming for better clarity Implemented a basic display of filenames with basic navigation
Diffstat (limited to 'viewer/src/store/galleryStore.ts')
-rw-r--r--viewer/src/store/galleryStore.ts5
1 files changed, 3 insertions, 2 deletions
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({
7 7
8export default class GalleryStore extends VuexModule { 8export default class GalleryStore extends VuexModule {
9 9
10 galleryItems: Gallery.Item[] = []; 10 galleryItems: Gallery.Item | null = null;
11 11
12 @mutation setGalleryItems(galleryItems: Gallery.Item[]) { 12 @mutation setGalleryItems(galleryItems: Gallery.Item) {
13 this.galleryItems = galleryItems; 13 this.galleryItems = galleryItems;
14 } 14 }
15 15
@@ -18,4 +18,5 @@ export default class GalleryStore extends VuexModule {
18 .then(response => response.json()) 18 .then(response => response.json())
19 .then(this.setGalleryItems); 19 .then(this.setGalleryItems);
20 } 20 }
21
21} \ No newline at end of file 22} \ No newline at end of file