ikona donatora w zakładce Pociągi; poprawki tłumaczeń

This commit is contained in:
2023-11-28 18:33:40 +01:00
parent 1947555724
commit 647055d2f0
6 changed files with 31 additions and 9 deletions
+3 -2
View File
@@ -38,7 +38,7 @@
<br />
<i18n-t keypath="donations.p4" tag="p">
<template v-slot:img>
<img src="/images/icon-diamond.svg" alt="diamond donator icon" />
<img src="/images/icon-diamond.svg" alt="donator diamond icon" />
</template>
<template v-slot:b1>
@@ -46,7 +46,7 @@
</template>
<template v-slot:b2>
<b class="text--honorable">{{ $t('donations.p4-b2') }}</b>
<b>{{ $t('donations.p4-b2') }}</b>
</template>
</i18n-t>
<br />
@@ -164,6 +164,7 @@ export default defineComponent({
.modal_main {
overflow: auto;
img {
max-height: 20px;
margin-right: 5px;
+2 -3
View File
@@ -110,15 +110,14 @@
<td class="station_dispatcher-name">
<span v-if="station.onlineInfo?.dispatcherName">
<div
<b
v-if="store.donatorsData.includes(station.onlineInfo.dispatcherName)"
title="Dyżurny wspierający projekt Stacjownika!"
class="text--honorable"
@click.stop="openDonationModal"
>
<img src="/images/icon-diamond.svg" alt="" />
{{ station.onlineInfo.dispatcherName }}
</div>
</b>
<div v-else>
{{ station.onlineInfo.dispatcherName }}
+23 -1
View File
@@ -32,7 +32,17 @@
>
{{ train.driverLevel < 2 ? 'L' : `${train.driverLevel}` }}
</b>
<span>{{ train.driverName }}</span>
<div class="train-driver">
<b
v-if="store.donatorsData.includes(train.driverName)"
title="Dyżurny wspierający projekt Stacjownika!"
>
{{ train.driverName }}
<img src="/images/icon-diamond.svg" alt="donator diamond icon" />
</b>
<span v-else>{{ train.driverName }}</span>
</div>
</div>
<div class="general-timetable" v-if="train.timetableData">
@@ -114,6 +124,7 @@ import trainInfoMixin from '../../mixins/trainInfoMixin';
import Train from '../../scripts/interfaces/Train';
import ProgressBar from '../Global/ProgressBar.vue';
import TrainThumbnail from '../Global/TrainThumbnail.vue';
import { useStore } from '../../store/mainStore';
export default defineComponent({
mixins: [trainInfoMixin, styleMixin],
@@ -128,6 +139,12 @@ export default defineComponent({
type: Boolean,
default: true
}
},
data() {
return {
store: useStore()
};
}
});
</script>
@@ -171,6 +188,11 @@ export default defineComponent({
gap: 0.5em;
}
.train-driver img {
max-height: 20px;
vertical-align: text-bottom;
}
.timetable-id {
color: #d2d2d2;
}