aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/galleryStore.ts
diff options
context:
space:
mode:
authorZero~Informatique2020-06-20 16:50:49 +0200
committerOzoneGrif2020-06-28 14:11:13 +0200
commit170d7a61f720ece9dc4b347b19f5a8213f1d8984 (patch)
tree3a7af0595faea4a98437f8f73b3172529bda3a1d /viewer/src/store/galleryStore.ts
parent06355c9cebce469d3d827d48043387144c2458a5 (diff)
downloadldgallery-170d7a61f720ece9dc4b347b19f5a8213f1d8984.tar.gz
viewer: prettier formatting based on eslint-prettier plugin
Diffstat (limited to 'viewer/src/store/galleryStore.ts')
-rw-r--r--viewer/src/store/galleryStore.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index a57122c..5458f20 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -23,11 +23,10 @@ import Navigation from "@/services/navigation";
23 23
24const VuexModule = createModule({ 24const VuexModule = createModule({
25 namespaced: "galleryStore", 25 namespaced: "galleryStore",
26 strict: true 26 strict: true,
27}) 27});
28 28
29export default class GalleryStore extends VuexModule { 29export default class GalleryStore extends VuexModule {
30
31 config: Gallery.Config | null = null; 30 config: Gallery.Config | null = null;
32 galleryIndex: Gallery.Index | null = null; 31 galleryIndex: Gallery.Index | null = null;
33 tagsIndex: Tag.Index = {}; 32 tagsIndex: Tag.Index = {};
@@ -65,8 +64,7 @@ export default class GalleryStore extends VuexModule {
65 64
66 get currentItemPath(): Gallery.Item[] { 65 get currentItemPath(): Gallery.Item[] {
67 const root = this.galleryIndex?.tree; 66 const root = this.galleryIndex?.tree;
68 if (root) 67 if (root) return Navigation.searchCurrentItemPath(root, this.currentPath);
69 return Navigation.searchCurrentItemPath(root, this.currentPath);
70 return []; 68 return [];
71 } 69 }
72 70