Skip to content

Commit 67e52d0

Browse files
committed
Merged in feat/mocksnapshots (pull request #37)
reverts search, small text changes, adds release notes
1 parent 8bd7c41 commit 67e52d0

File tree

3 files changed

+42
-31
lines changed

3 files changed

+42
-31
lines changed

RELEASE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Releases
44

5+
### 0.6.2
6+
[Released *2020-11-16*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.6.2)
7+
8+
- Added a mock snapshot store for improved onboarding
9+
510
### 0.6.1
611
[Released: *2020-09-03*](https://bitbucket.org/cividi/gemeindescan-webui/commits/tag/0.6.1)
712

vue/src/components/Search.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,22 @@ export default {
9797
9898
submitMunicipality() {
9999
if (this.select.node.bfsNumber) {
100-
// if (this.select.node.snapshots.length === 0) {
101-
this.$router.push({
102-
name: 'snapshotNew',
103-
params: {
104-
hash: null,
105-
bfsNumber: this.select.node.bfsNumber
106-
}
107-
});
108-
// } else {
109-
// this.$router.push({
110-
// name: 'snapshot',
111-
// params: {
112-
// hash: this.select.node.snapshots[0].pk
113-
// }
114-
// });
115-
// }
100+
if (this.select.node.snapshots.length === 0) {
101+
this.$router.push({
102+
name: 'snapshotNew',
103+
params: {
104+
hash: null,
105+
bfsNumber: this.select.node.bfsNumber
106+
}
107+
});
108+
} else {
109+
this.$router.push({
110+
name: 'snapshot',
111+
params: {
112+
hash: this.select.node.snapshots[0].pk
113+
}
114+
});
115+
}
116116
}
117117
}
118118
},

vue/src/views/Snapshot.vue

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"de": {
55
"calltoactionText": "Angebot für Ihre Gemeinde einholen",
66
"hasSnapshot.title": "Datenverfügbarkeit",
7-
"hasSnapshot.p1": "Für {municipalityText} stehen erste Daten zur Verfügung.",
7+
"hasSnapshot.p1": "Für {municipalityText} stehen erste Analysen zur Verfügung.",
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",
1111
"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.",
13-
"noSnapshot.p3.1": "Gerne beraten wir sie via",
14-
"noSnapshot.p3.2": "oder telefonisch unter",
13+
"noSnapshot.p3.1": "Gerne beraten wir Sie telefonisch unter",
14+
"noSnapshot.p3.2": " oder per email",
1515
"contactEmail": "[email protected]",
1616
"contactEmailSubject": "Anfrage Gemeindescan",
1717
"contactPhone": "+41 43 543 44 48",
@@ -25,10 +25,10 @@
2525
"hasSnapshot.p2": "Prenez compte de nos études pour une meilleure vue d’ensemble des possibilitiées qui s’offrent à votre commune.",
2626
"noSnapshot.title": "Disponibilité des données",
2727
"noSnapshot.municipalityText": "cette communauté",
28-
"noSnapshot.p1": "En ce moment il n’éxiste pas encore de données pour {municipalityText}.",
28+
"noSnapshot.p1": "Pour l'instant, aucune analyse n'est disponible pour {municipalityText}.",
2929
"noSnapshot.p2": "Prenez compte de nos études pour une meilleure vue d’ensemble des possibilitiées qui s’offrent à votre commune.",
30-
"noSnapshot.p3.1": "Gerne beraten wir sie via",
31-
"noSnapshot.p3.2": "oder telefonisch unter",
30+
"noSnapshot.p3.1": "Nous vous conseillons volontiers par téléphone au",
31+
"noSnapshot.p3.2": "ou par courriel",
3232
"contactEmail": "[email protected]",
3333
"contactEmailSubject": "Offre pour Gemeindescan",
3434
"contactPhone": "+41 43 543 44 48",
@@ -59,18 +59,29 @@
5959

6060
<div v-if="!hash" class="nodata pb-8">
6161
<div class="smaller hint">
62-
<!-- <h4>{{ $t('noSnapshot.title') }}</h4> -->
6362
<p>{{ $t('noSnapshot.p1', { municipalityText: municipalityText }) }}</p>
6463
<p>{{ $t('noSnapshot.p2') }}</p>
6564
<p>
6665
{{ $t('noSnapshot.p3.1') }}
67-
<a @click="composeEmail">{{$t('contactEmail')}}</a>
66+
<a @click="makeCall">{{$t('contactPhone')}}</a>
6867
{{ $t('noSnapshot.p3.2') }}
69-
<a @click="makeCall">{{$t('contactPhone')}}</a>.
68+
<a @click="composeEmail">{{$t('contactEmail')}}</a>.
7069
</p>
7170
</div>
7271
</div>
7372

73+
<div v-else class="nodata pb-8">
74+
<div class="smaller hint">
75+
<p>{{ $t('hasSnapshot.p1', { municipalityText: municipalityText }) }}</p>
76+
<p>{{ $t('hasSnapshot.p2') }}</p>
77+
</div>
78+
</div>
79+
80+
<snapshot-list
81+
v-if="hash"
82+
:snapshots="snapshotsMunicipality" :withTopic="false"
83+
/>
84+
7485
<div class="useractions">
7586
<v-btn small block outlined color="primary">
7687
<router-link key="signup" :to="'/' + $i18n.locale + '/signup/'">
@@ -80,12 +91,7 @@
8091
</div>
8192

8293
<snapshot-list
83-
v-if="hash"
84-
:snapshots="snapshotsMunicipality" :withTopic="false"
85-
/>
86-
87-
<snapshot-list
88-
v-if="snapshotsStore"
94+
v-if="snapshotsStore && !hash"
8995
:snapshots="snapshotsStore" :withTopic="true"
9096
/>
9197

0 commit comments

Comments
 (0)