feat: driver train view

This commit is contained in:
2024-08-21 02:02:35 +02:00
parent 481d43b6d8
commit 24c9b62162
12 changed files with 102 additions and 53 deletions
-9
View File
@@ -19,7 +19,6 @@
import { computed, ComputedRef, defineComponent, provide, reactive, ref, watch } from 'vue';
import TrainOptions from '../components/TrainsView/TrainOptions.vue';
import TrainTable from '../components/TrainsView/TrainTable.vue';
import modalTrainMixin from '../mixins/modalTrainMixin';
import { useMainStore } from '../store/mainStore';
import { TrainFilter, trainFilters } from '../components/TrainsView/typings';
import { filteredTrainList } from '../managers/trainFilterManager';
@@ -33,8 +32,6 @@ export default defineComponent({
TrainStats
},
mixins: [modalTrainMixin],
props: {
train: {
type: String,
@@ -106,12 +103,6 @@ export default defineComponent({
this.searchedTrain = this.train;
this.searchedDriver = this.driver || '';
}
this.$nextTick(() => {
if (this.trainId) {
this.selectModalTrainById(this.trainId);
}
});
}
});
</script>