aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store
diff options
context:
space:
mode:
authorZero~Informatique2020-02-27 22:30:58 +0100
committerZero~Informatique2020-02-27 22:30:58 +0100
commitfd8064319e352a0083c9e282125e658a44e4dabb (patch)
treef558e5d5e378e9eb272f0bb4cb559bcbf071dc74 /viewer/src/store
parentd0063699f031706860689679d4ecf8651b545af1 (diff)
downloadldgallery-fd8064319e352a0083c9e282125e658a44e4dabb.tar.gz
viewer: set page title
New version, making use of the galleryTitle property, from gallery.yaml
Diffstat (limited to 'viewer/src/store')
-rw-r--r--viewer/src/store/galleryStore.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index 84673b5..9950f5b 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -70,6 +70,10 @@ export default class GalleryStore extends VuexModule {
70 return path.length > 0 ? path[path.length - 1] : null; 70 return path.length > 0 ? path[path.length - 1] : null;
71 } 71 }
72 72
73 get galleryTitle(): string {
74 return this.galleryIndex?.properties.galleryTitle ?? "ldgallery";
75 }
76
73 // --- 77 // ---
74 78
75 // Fetches the gallery's JSON config 79 // Fetches the gallery's JSON config