diff --git a/src/components/App/AppWelcomeCard.vue b/src/components/App/AppWelcomeCard.vue index 968e84e..75082ad 100644 --- a/src/components/App/AppWelcomeCard.vue +++ b/src/components/App/AppWelcomeCard.vue @@ -5,11 +5,11 @@
@@ -116,6 +116,7 @@ + + diff --git a/src/components/JournalView/JournalTimetables/EntryGeneral.vue b/src/components/JournalView/JournalTimetables/EntryGeneral.vue index 5d0aa7f..760f777 100644 --- a/src/components/JournalView/JournalTimetables/EntryGeneral.vue +++ b/src/components/JournalView/JournalTimetables/EntryGeneral.vue @@ -71,6 +71,8 @@ {{ timetable.driverName }} + +
@@ -110,6 +112,7 @@ import dateMixin from '../../../mixins/dateMixin'; import styleMixin from '../../../mixins/styleMixin'; import { useApiStore } from '../../../store/apiStore'; import trainCategoryMixin from '../../../mixins/trainCategoryMixin'; +import { getLanguageNameById } from '../../../utils/languageUtils'; export default defineComponent({ mixins: [dateMixin, styleMixin, trainCategoryMixin], @@ -191,7 +194,7 @@ export default defineComponent({ } } -@include responsive.smallScreen{ +@include responsive.smallScreen { .item-general { flex-direction: column; justify-content: center; diff --git a/src/components/StationsView/StationTable.vue b/src/components/StationsView/StationTable.vue index cde1365..266350a 100644 --- a/src/components/StationsView/StationTable.vue +++ b/src/components/StationsView/StationTable.vue @@ -146,12 +146,8 @@ - - user flag + + @@ -353,18 +349,18 @@ import { getChangedFilters } from '../../managers/stationFilterManager'; import { ActiveSorter, HeadIdsType, headIconsIds, headIds } from './typings'; import { filterStations, sortStations } from './utils'; import { getLanguageNameById } from '../../utils/languageUtils'; +import FlagIcon from '../Global/FlagIcon.vue'; export default defineComponent({ emits: ['toggleDonationCard'], - components: { Loading, StationStatusBadge }, + components: { Loading, StationStatusBadge, FlagIcon }, mixins: [styleMixin, dateMixin], data: () => ({ headIconsIds, headIds, - getChangedFilters, - getLanguageNameById + getChangedFilters }), setup() { @@ -618,13 +614,6 @@ tbody tr { } } -.station-dispatcher-lang { - img { - max-width: 2em; - vertical-align: middle; - } -} - .station-level { span { background-color: #888; diff --git a/src/components/TrainsView/TrainInfo.vue b/src/components/TrainsView/TrainInfo.vue index bc39d5d..cf95376 100644 --- a/src/components/TrainsView/TrainInfo.vue +++ b/src/components/TrainsView/TrainInfo.vue @@ -68,10 +68,7 @@
- user flag +
@@ -206,11 +203,11 @@ import trainInfoMixin from '../../mixins/trainInfoMixin'; import trainCategoryMixin from '../../mixins/trainCategoryMixin'; import ProgressBar from '../Global/ProgressBar.vue'; import StockList from '../Global/StockList.vue'; -import { getLanguageNameById } from '../../utils/languageUtils'; +import FlagIcon from '../Global/FlagIcon.vue'; export default defineComponent({ mixins: [trainInfoMixin, styleMixin, trainCategoryMixin], - components: { ProgressBar, StockList }, + components: { ProgressBar, StockList, FlagIcon }, props: { train: { @@ -225,8 +222,7 @@ export default defineComponent({ data() { return { store: useMainStore(), - apiStore: useApiStore(), - getLanguageNameById + apiStore: useApiStore() }; }, @@ -299,11 +295,6 @@ export default defineComponent({ vertical-align: text-bottom; } -.train-language-flag img { - width: 1.5em; - vertical-align: text-bottom; -} - .timetable-id { color: #d2d2d2; } diff --git a/src/typings/api.ts b/src/typings/api.ts index f725da9..60ea024 100644 --- a/src/typings/api.ts +++ b/src/typings/api.ts @@ -38,6 +38,7 @@ export namespace API { dispatcherLevel: number | null; dispatcherRate: number; dispatcherIsSupporter: boolean; + dispatcherLanguageId: number | null; dispatcherStatus?: number; isOnline: boolean; lastOnlineTimestamp: number; @@ -223,6 +224,7 @@ export namespace API { driverName: string; driverLevel: number | null; driverIsSupporter: boolean; + driverLanguageId: number | null; route: string; twr: number; diff --git a/src/views/StationsView.vue b/src/views/StationsView.vue index 033bea3..834f049 100644 --- a/src/views/StationsView.vue +++ b/src/views/StationsView.vue @@ -29,10 +29,7 @@ data-tooltip-type="HtmlTooltip" :data-tooltip-content="`${$t('app.language-tooltip-content')}`" > - change language flag icon + ({