diff options
author | Zero~Informatique | 2020-02-12 00:09:34 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-12 00:10:22 +0100 |
commit | 19d40a5ee98fb1f244612155acc559ff2f21bf6b (patch) | |
tree | 836e46364b95197da1d643880e9ab259dce32076 /viewer/src/views | |
parent | e61a7c84f1a1753186980ff1990ee146395ddfc1 (diff) | |
download | ldgallery-19d40a5ee98fb1f244612155acc559ff2f21bf6b.tar.gz |
viewer: implemented config.json
Note: The DevServer needs to know when the file is from the App, or from the FileSystem.
We use a tilde to make this separation. The tilde URL is declared in '.env.development'
GitHub: Resolves #32
Diffstat (limited to 'viewer/src/views')
-rw-r--r-- | viewer/src/views/MainLayout.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue index 12388a9..63a1b83 100644 --- a/viewer/src/views/MainLayout.vue +++ b/viewer/src/views/MainLayout.vue | |||
@@ -60,7 +60,8 @@ export default class MainLayout extends Vue { | |||
60 | fetchGalleryItems() { | 60 | fetchGalleryItems() { |
61 | this.isLoading = true; | 61 | this.isLoading = true; |
62 | this.$galleryStore | 62 | this.$galleryStore |
63 | .fetchGalleryItems(`${process.env.VUE_APP_DATA_URL}index.json`) | 63 | .fetchConfig() |
64 | .then(this.$galleryStore.fetchGalleryItems) | ||
64 | .finally(() => (this.isLoading = false)) | 65 | .finally(() => (this.isLoading = false)) |
65 | .catch(this.displayError); | 66 | .catch(this.displayError); |
66 | } | 67 | } |