Dodano listę szlaków w widoku scenerii

This commit is contained in:
2022-03-05 16:50:08 +01:00
parent fb18a156d0
commit c9d0a674e4
10 changed files with 101 additions and 21 deletions
+8 -5
View File
@@ -50,8 +50,9 @@
</span>
<img src="@/assets/icon-dispatcher.svg" alt="icon dispatcher" />
<span>{{ data.activeStationCount }}</span>
<span>{{ data.activeTrainCount }}</span>
{{ data.activeStationCount }}
|
{{ data.activeTrainCount }}
<img src="@/assets/icon-train.svg" alt="icon train" />
</div>
</span>
@@ -131,6 +132,11 @@ export default defineComponent({
sceneryDataStatus,
dispatcherDataStatus: computed(() => data.value.dispatcherDataStatus),
timetableCount: data.value.trainList.filter((train) => train.timetableData).length,
onlineDispatcherCount: data.value.stationList.filter(
(station) => station.onlineInfo && station.onlineInfo.statusTimestamp > 0
).length,
openFilterCard() {
isFilterCardVisible.value = true;
},
@@ -148,8 +154,6 @@ export default defineComponent({
pl: require('@/assets/icon-pl.svg'),
error: require('@/assets/icon-error.svg'),
},
}),
created() {
@@ -174,7 +178,6 @@ export default defineComponent({
StorageManager.setBooleanValue('version_notes_read', true);
},
changeLang(lang: string) {
this.$i18n.locale = lang;
this.currentLang = lang;