mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
chore(journal): added language flags to journal entries
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
>
|
>
|
||||||
{{ entry.dispatcherLevel >= 2 ? entry.dispatcherLevel : 'L' }}
|
{{ entry.dispatcherLevel >= 2 ? entry.dispatcherLevel : 'L' }}
|
||||||
</b>
|
</b>
|
||||||
|
|
||||||
<b style="margin-left: 5px">
|
<b style="margin-left: 5px">
|
||||||
<span
|
<span
|
||||||
v-if="apiStore.donatorsData.includes(entry.dispatcherName)"
|
v-if="apiStore.donatorsData.includes(entry.dispatcherName)"
|
||||||
@@ -39,6 +40,10 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</b>
|
</b>
|
||||||
|
|
||||||
|
<span class="dispatcher-language" v-if="entry.dispatcherLanguageId != null">
|
||||||
|
<FlagIcon :language-id="entry.dispatcherLanguageId" width="1.5em" />
|
||||||
|
</span>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span v-if="entry.timestampTo">
|
<span v-if="entry.timestampTo">
|
||||||
<b>{{ $d(entry.timestampFrom) }}</b>
|
<b>{{ $d(entry.timestampFrom) }}</b>
|
||||||
@@ -118,6 +123,7 @@ import dateMixin from '../../../mixins/dateMixin';
|
|||||||
import styleMixin from '../../../mixins/styleMixin';
|
import styleMixin from '../../../mixins/styleMixin';
|
||||||
import { useApiStore } from '../../../store/apiStore';
|
import { useApiStore } from '../../../store/apiStore';
|
||||||
import StationStatusBadge from '../../Global/StationStatusBadge.vue';
|
import StationStatusBadge from '../../Global/StationStatusBadge.vue';
|
||||||
|
import FlagIcon from '../../Global/FlagIcon.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
@@ -125,7 +131,7 @@ export default defineComponent({
|
|||||||
showExtraInfo: { type: Boolean, required: true }
|
showExtraInfo: { type: Boolean, required: true }
|
||||||
},
|
},
|
||||||
|
|
||||||
components: { StationStatusBadge },
|
components: { StationStatusBadge, FlagIcon },
|
||||||
mixins: [dateMixin, styleMixin],
|
mixins: [dateMixin, styleMixin],
|
||||||
emits: ['toggleShowExtraInfo'],
|
emits: ['toggleShowExtraInfo'],
|
||||||
|
|
||||||
@@ -164,6 +170,11 @@ export default defineComponent({
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dispatcher-language {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
.entry-info {
|
.entry-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -198,7 +209,7 @@ export default defineComponent({
|
|||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include responsive.smallScreen{
|
@include responsive.smallScreen {
|
||||||
.entry-info {
|
.entry-info {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -72,7 +72,9 @@
|
|||||||
<strong>{{ timetable.driverName }}</strong>
|
<strong>{{ timetable.driverName }}</strong>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<div v-if="timetable.driverLanguageId != null"></div>
|
<div v-if="timetable.driverLanguageId != null">
|
||||||
|
<FlagIcon :language-id="timetable.driverLanguageId" width="1.5em" />
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="general-time">
|
<span class="general-time">
|
||||||
@@ -112,9 +114,10 @@ import dateMixin from '../../../mixins/dateMixin';
|
|||||||
import styleMixin from '../../../mixins/styleMixin';
|
import styleMixin from '../../../mixins/styleMixin';
|
||||||
import { useApiStore } from '../../../store/apiStore';
|
import { useApiStore } from '../../../store/apiStore';
|
||||||
import trainCategoryMixin from '../../../mixins/trainCategoryMixin';
|
import trainCategoryMixin from '../../../mixins/trainCategoryMixin';
|
||||||
import { getLanguageNameById } from '../../../utils/languageUtils';
|
import FlagIcon from '../../Global/FlagIcon.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
components: { FlagIcon },
|
||||||
mixins: [dateMixin, styleMixin, trainCategoryMixin],
|
mixins: [dateMixin, styleMixin, trainCategoryMixin],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Reference in New Issue
Block a user