diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue index 1f630ad..d6f838a 100644 --- a/src/components/SceneryView/SceneryTimetable.vue +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -4,14 +4,14 @@ {{ $t("scenery.timetables") }} icon-view @@ -182,7 +182,7 @@ export default class SceneryTimetable extends Vue { } get currentURL() { - return `${location.origin}/scenery?hash=${this.stationInfo?.stationHash}`; + return `${location.origin}${this.$route.fullPath}`; } get computedScheduledTrains() { diff --git a/src/components/StationsView/FilterCard.vue b/src/components/StationsView/FilterCard.vue index 1dade14..1e803b2 100644 --- a/src/components/StationsView/FilterCard.vue +++ b/src/components/StationsView/FilterCard.vue @@ -226,7 +226,7 @@ $saveCol: #28a826; cursor: pointer; - padding: 0.3em 0.4em; + padding: 0.5em 0.55em; display: inline-block; position: relative; diff --git a/src/components/TrainsView/TrainOptions.vue b/src/components/TrainsView/TrainOptions.vue index 5f9ab7b..15401a7 100644 --- a/src/components/TrainsView/TrainOptions.vue +++ b/src/components/TrainsView/TrainOptions.vue @@ -48,7 +48,6 @@ import SelectBox from "../Global/SelectBox.vue"; export default class TrainOptions extends Vue { // Passed as component parameters @Prop() readonly queryTrain!: string; - @Prop() readonly focusedTrain!: string; exitIcon = require("@/assets/icon-exit.svg"); @@ -127,9 +126,9 @@ export default class TrainOptions extends Vue { onQueryTrainChanged(train: string | undefined) { if (!train) return; if (train == "") return; - console.log("query train changed", train); - // this.chooseTrain(train); + this.searchedTrain = train; + this.searchedDriver = ""; } } diff --git a/src/components/TrainsView/TrainSearch.vue b/src/components/TrainsView/TrainSearch.vue deleted file mode 100644 index f4126ce..0000000 --- a/src/components/TrainsView/TrainSearch.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/TrainsView/TrainSorter.vue b/src/components/TrainsView/TrainSorter.vue deleted file mode 100644 index b1096fb..0000000 --- a/src/components/TrainsView/TrainSorter.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - - - diff --git a/src/lang/en.json b/src/lang/en.json index 9a2acbf..5b3c51d 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -122,6 +122,7 @@ "return-btn": "Return to main site" }, "timetables": { + "timetable-only": "Switch to timetable-only view", "online": "At station", "departed": "Dispatched", "departed-away": "Departed", diff --git a/src/lang/pl.json b/src/lang/pl.json index 90fb501..402e6aa 100644 --- a/src/lang/pl.json +++ b/src/lang/pl.json @@ -122,6 +122,7 @@ "return-btn": "Wróć na stronę główną" }, "timetables": { + "timetable-only": "Wyodrębnij rozkłady jazdy", "online": "Na stacji", "departed": "Odprawiony", "departed-away": "Odjechał", diff --git a/src/views/TrainsView.vue b/src/views/TrainsView.vue index e01c720..d52dbd3 100644 --- a/src/views/TrainsView.vue +++ b/src/views/TrainsView.vue @@ -1,43 +1,32 @@