Skip to content

Commit 550494d

Browse files
committed
feat: enhance ChartsView to display loading state and no data message for selected features
1 parent e1ab3b9 commit 550494d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

frontend/src/views/ChartsView.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,24 @@
1818
<v-container v-else fluid fill-height>
1919
<TimeSeriesCharts />
2020
</v-container>
21-
21+
</template>
22+
<template v-else>
2223
<v-container v-if="fetchingData">
2324
<h2 class="text-center ma-2">
2425
<v-progress-circular :size="50" color="primary" indeterminate></v-progress-circular>
2526
Loading data...
2627
</h2>
2728
<v-skeleton-loader height="70vh" type="image, divider, list-item-two-line" />
2829
</v-container>
30+
<v-container v-else>
31+
<v-sheet border="md" class="pa-6 mx-auto ma-4" max-width="1200" rounded>
32+
<span>
33+
No data available for the selected feature. Please try querying HydroCron again or
34+
selecting a different feature from the
35+
<router-link :to="{ path: `/` }">Map</router-link>.
36+
</span>
37+
</v-sheet>
38+
</v-container>
2939
</template>
3040
</template>
3141
<template v-else>

0 commit comments

Comments
 (0)