Skip to content

Commit 6034242

Browse files
committed
fix use case show on home
1 parent b105b68 commit 6034242

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

vue/src/views/Home.vue

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</v-row>
4949
</v-container>
5050

51-
<v-container v-if="!{networkError}" class="center" fluid mb-12>
51+
<v-container v-if="!networkError" class="center" fluid mb-12>
5252
<v-row justify="center" >
5353
<v-col class="introtxt text-center">
5454
<h2>{{ $t('h2.2') }}</h2>
@@ -87,19 +87,6 @@
8787
<v-icon>mdi-close-circle-outline</v-icon>
8888
</v-btn>
8989
</v-snackbar>
90-
<!--
91-
<v-container class="" justify-center my-12>
92-
<v-row justify="center">
93-
<v-col class="introtxt text-center py-12">
94-
<p class="quotetxt">{{ $t('p.3') }}</p>
95-
<br>
96-
<p >Oliver Gröble<br>{{ $t('p.4') }}</p>
97-
98-
</v-col>
99-
</v-row>
100-
</v-container>
101-
-->
102-
10390
</div>
10491

10592
</template>
@@ -168,11 +155,14 @@ export default {
168155
}`
169156
}).catch(() => {
170157
this.snackbar = true;
158+
this.networkError = true;
171159
});
172160
if (result) {
173161
const snapshots = result.data.snapshots.edges.map(snapshot => snapshot.node);
174162
// fake random, for more randomness, use https://www.npmjs.com/package/lodash.shuffle package
175163
this.snapshotsExamples = snapshots.sort(() => (Math.random() > 0.5 ? -1 : 1)).slice(0, 3);
164+
this.snackbar = false;
165+
this.networkError = false;
176166
}
177167
}
178168
}

0 commit comments

Comments
 (0)