|
36 | 36 | id="snapshotnav" |
37 | 37 | clipped="clipped" |
38 | 38 | app |
39 | | - width="320"> |
| 39 | + width="320" |
| 40 | + v-model="snapshotnav"> |
40 | 41 | <router-link id="logo" :to="'/' + $i18n.locale + '/'" class="px-4 py-1 d-block"> |
41 | 42 | <img alt="gemeindescan logo" height="50" src="@/assets/images/gemeindescan-logo.svg"> |
42 | 43 | </router-link> |
|
47 | 48 | <search :dense="true" :term="municipalityName"/> |
48 | 49 |
|
49 | 50 | <div class="nodata pb-8"> |
50 | | - <div v-if="hash" class="smaller hint"> |
51 | | - <h4>{{ $t('hasSnapshot.title') }}</h4> |
52 | | - <p>{{ $t('hasSnapshot.p1', { municipalityText: municipalityText }) }}</p> |
53 | | - <p>{{ $t('hasSnapshot.p2') }}</p> |
54 | | - </div> |
55 | | - <div v-else class="smaller hint"> |
| 51 | + <div v-if="!hash" class="smaller hint"> |
56 | 52 | <h4>{{ $t('noSnapshot.title') }}</h4> |
57 | 53 | <p>{{ $t('noSnapshot.p1', { municipalityText: municipalityText }) }}</p> |
58 | 54 | <p>{{ $t('noSnapshot.p2') }}</p> |
59 | 55 | </div> |
60 | | - <div class="useractions"> |
61 | | - <v-btn small block outlined color="primary"> |
62 | | - <router-link key="signup" :to="'/' + $i18n.locale + '/signup/'"> |
63 | | - {{ $t('calltoactionText', { municipalityText: municipalityText }) }} |
64 | | - </router-link> |
65 | | - </v-btn> |
66 | | - </div> |
67 | 56 |
|
68 | 57 | <snapshot-list |
69 | 58 | v-if="snapshotsMunicipality" |
70 | 59 | :snapshots="snapshotsMunicipality" |
71 | 60 | /> |
72 | 61 | </div> |
73 | 62 |
|
| 63 | + <v-subheader |
| 64 | + class="px-0 snapshot-list-title">{{ listtitleText }} |
| 65 | + </v-subheader> |
| 66 | + |
| 67 | + <div class="useractions"> |
| 68 | + <v-btn small block outlined color="primary"> |
| 69 | + <router-link key="signup" :to="'/' + $i18n.locale + '/signup/'"> |
| 70 | + {{ $t('calltoactionText', { municipalityText: municipalityText }) }} |
| 71 | + </router-link> |
| 72 | + </v-btn> |
| 73 | + </div> |
| 74 | + |
74 | 75 | <snapshot-list |
75 | 76 | v-if="snapshotsExamples" |
76 | 77 | :snapshots="snapshotsExamples" |
77 | | - :title="listtitleText" |
78 | 78 | /> |
79 | 79 | </div> |
80 | 80 |
|
@@ -169,6 +169,15 @@ export default { |
169 | 169 | return this.$t('listtitleMore'); |
170 | 170 | } |
171 | 171 | return this.$t('listtitle'); |
| 172 | + }, |
| 173 | +
|
| 174 | + snapshotnav: { |
| 175 | + get() { |
| 176 | + return this.$store.state.snapshotnav; |
| 177 | + }, |
| 178 | + set(val) { |
| 179 | + this.$store.commit('setSnapshotnav', val); |
| 180 | + } |
172 | 181 | } |
173 | 182 | }, |
174 | 183 |
|
|
0 commit comments