Rozszerzony rozkład jazdy

This commit is contained in:
2020-09-26 19:36:58 +02:00
parent 0b4a32eeb2
commit e347ab2277
7 changed files with 107 additions and 40 deletions
@@ -28,6 +28,7 @@ export default class extends Vue {
searchedDriver = "";
@Prop() readonly passedSearchedTrain!: string;
@Prop() readonly focusedTrain!: string;
// @Prop() readonly passedSearchedDriver!: string;
@Watch("searchedTrain")
@@ -48,6 +49,14 @@ export default class extends Vue {
}
}
@Watch("focusedTrain")
onFocusedTrainChanged(val: string, oldVal: string) {
console.log(val);
this.searchedTrain = val;
this.searchedDriver = "";
}
mounted() {
if (this.passedSearchedTrain && this.passedSearchedTrain != "") {
this.searchedTrain = this.passedSearchedTrain;