Skip to content

Commit

Permalink
Add page not found (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben authored Sep 28, 2023
1 parent fb5034c commit 1e9a474
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/leaflet/WisMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ export default defineComponent({
.then(function () {
var bounds_ = geoJSON(self.features_.stations).getBounds();
self.map.fitBounds(bounds_);
})
.catch(function () {
self.$root.catch(`
<p>${self.$t("messages.does_not_exist")}</p>
<p>${self.$t("messages.how_to_link_station")}</p>`);
})
.then(function () {
self.loading = false;
setTimeout(self.loadStations, 900000);
});
Expand Down

0 comments on commit 1e9a474

Please sign in to comment.