diff --git a/src/components/SceneryView/SceneryDispatchersHistory.vue b/src/components/SceneryView/SceneryDispatchersHistory.vue index f97795b..2b07719 100644 --- a/src/components/SceneryView/SceneryDispatchersHistory.vue +++ b/src/components/SceneryView/SceneryDispatchersHistory.vue @@ -1,116 +1,112 @@ - - - - - - + + + + + diff --git a/src/mixins/modalTrainMixin.ts b/src/mixins/modalTrainMixin.ts index 86f45e2..92505d2 100644 --- a/src/mixins/modalTrainMixin.ts +++ b/src/mixins/modalTrainMixin.ts @@ -1,30 +1,26 @@ -import { defineComponent } from 'vue'; -import { useStore } from '../store/store'; - -export default defineComponent({ - setup() { - return { - store: useStore(), - }; - }, - - mounted() { - console.log('Mixin mounted'); - }, - - computed: { - chosenTrain() { - return this.store.trainList.find((train) => train.trainId == this.store.chosenModalTrainId); - }, - }, - - methods: { - selectModalTrain(trainId: string) { - this.store.chosenModalTrainId = trainId; - }, - - closeModal() { - this.store.chosenModalTrainId = undefined; - }, - }, -}); +import { defineComponent } from 'vue'; +import { useStore } from '../store/store'; + +export default defineComponent({ + setup() { + return { + store: useStore(), + }; + }, + + computed: { + chosenTrain() { + return this.store.trainList.find((train) => train.trainId == this.store.chosenModalTrainId); + }, + }, + + methods: { + selectModalTrain(trainId: string) { + this.store.chosenModalTrainId = trainId; + }, + + closeModal() { + this.store.chosenModalTrainId = undefined; + }, + }, +}); diff --git a/src/views/StationsView.vue b/src/views/StationsView.vue index e0d3a7a..2042752 100644 --- a/src/views/StationsView.vue +++ b/src/views/StationsView.vue @@ -64,8 +64,6 @@ export default defineComponent({ computedStationList() { const list = this.filterManager.getFilteredStationList(this.store.stationList, this.store.region.id); - console.log(list.map((station) => `${station.name} ${station.onlineInfo?.statusTimestamp}`)); - return list; }, },