88 "hasSnapshot.p2": "Erkunden Sie unsere weiteren Fallbeispiele um ein besseres Bild der Möglichkeiten für Ihre Gemeinde zu erhalten.",
99 "noSnapshot.title": "Datenverfügbarkeit",
1010 "noSnapshot.municipalityText": "diese Gemeinde",
11- "noSnapshot.p1": "Für {municipalityText} stehen zur Zeit noch keine Daten zur Verfügung .",
11+ "noSnapshot.p1": "Für {municipalityText} sind zur Zeit noch keine Analysen freigeschaltet .",
1212 "noSnapshot.p2": "Erkunden Sie unsere Fallbeispiele um ein besseres Bild der Möglichkeiten für Ihre Gemeinde zu erhalten.",
1313 "listtitle": "Fallbeispiele",
1414 "listtitleMore": "Weitere Fallbeispiele"
4747 <div id =" snapshotnavContent" class =" ma-4" >
4848 <search :dense =" true" :term =" municipalityName" />
4949
50- <div class =" nodata pb-8" >
51- <div v-if = " !hash " class =" smaller hint" >
52- <h4 >{{ $t('noSnapshot.title') }}</h4 >
50+ <div v-if = " !hash " class =" nodata pb-8" >
51+ <div class =" smaller hint" >
52+ <!-- < h4>{{ $t('noSnapshot.title') }}</h4> -- >
5353 <p >{{ $t('noSnapshot.p1', { municipalityText: municipalityText }) }}</p >
5454 <p >{{ $t('noSnapshot.p2') }}</p >
5555 </div >
56+ </div >
5657
57- <snapshot-list
58- v-if =" snapshotsMunicipality"
59- :snapshots =" snapshotsMunicipality"
60- />
58+ <div class =" useractions" >
59+ <v-btn small block outlined color =" primary" >
60+ <router-link key =" signup" :to =" '/' + $i18n.locale + '/signup/'" >
61+ {{ $t('calltoactionText', { municipalityText: municipalityText }) }}
62+ </router-link >
63+ </v-btn >
6164 </div >
6265
66+ <snapshot-list
67+ v-if =" hash"
68+ :snapshots =" snapshotsMunicipality" :withTopic =" false"
69+ />
70+
71+ <snapshot-list
72+ v-if =" snapshotsStore"
73+ :snapshots =" snapshotsStore" :withTopic =" true"
74+ />
75+
6376 <v-subheader
6477 class =" px-0 snapshot-list-title" >{{ listtitleText }}
6578 </v-subheader >
6982 :snapshots =" snapshotsExamples" :withTopic =" false"
7083 />
7184
72- <div class =" useractions" >
73- <v-btn small block outlined color =" primary" >
74- <router-link key =" signup" :to =" '/' + $i18n.locale + '/signup/'" >
75- {{ $t('calltoactionText', { municipalityText: municipalityText }) }}
76- </router-link >
77- </v-btn >
78- </div >
7985 </div >
8086
8187 <v-toolbar
@@ -134,9 +140,11 @@ export default {
134140 return {
135141 hash: this .$route .params .hash ,
136142 bfsNumber: this .$route .params .bfsNumber ,
143+ snapshotStoreUrl: process .env .VUE_APP_SNAPSHOTSTOREURL ,
137144 geojson: null ,
138145 geobounds: [],
139146 municipalityName: ' ' ,
147+ snapshotsStore: [],
140148 snapshotsExamples: [],
141149 snapshotsIdExamplesExclude: [],
142150 snapshotsMunicipality: [],
@@ -148,6 +156,16 @@ export default {
148156 },
149157
150158 async mounted () {
159+ fetch (` ${ this .snapshotStoreUrl } /pipelines.${ this .$i18n .locale } .json` )
160+ .then (response => response .json ())
161+ .then ((data ) => {
162+ data .forEach ((el , i ) => {
163+ data[i].thumbnail = ` ${ this .snapshotStoreUrl } /${ el .thumbnail } ` ;
164+ });
165+
166+ this .snapshotsStore = data;
167+ });
168+
151169 if (this .hash ) {
152170 await this .getSnapshotInfo (this .hash );
153171
0 commit comments