From da68b007940668d73c7d6fa47d26f8517aa5a83d Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 4 Dec 2020 19:45:49 +0100 Subject: [PATCH] Poprawki --- .gitignore | 4 ++++ public/index.html | 17 ++++++++++++++++- src/views/TimetableView.vue | 8 +++----- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4a5557e..86f9d46 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,10 @@ pnpm-debug.log* node_modules .gitignore + +#Firebase .firebase +.firebaserc +firebase.json .env diff --git a/public/index.html b/public/index.html index 66d5885..1acce97 100644 --- a/public/index.html +++ b/public/index.html @@ -5,9 +5,24 @@ + + Stacjownik + - Stacjownik + + + + + diff --git a/src/views/TimetableView.vue b/src/views/TimetableView.vue index 9d8ea73..61f9487 100644 --- a/src/views/TimetableView.vue +++ b/src/views/TimetableView.vue @@ -324,13 +324,11 @@ export default class TimetableView extends Vue { get stationInfo(): Station | null { if (!this.$route.query.station) return null; - const info = this.stationList.find( - (station) => - station.stationName === - this.$route.query.station.toString().replaceAll("_", " ") + const station = this.stationList.find( + (station) => station.stationHash === this.$route.query.station ); - return info || null; + return station || null; } updateRows(info: Station | null = this.stationInfo) {