chore(driver): updated cargo warnings in propositions

This commit is contained in:
2026-04-27 13:51:58 +02:00
parent 9b917a7b3b
commit 21725d4019
3 changed files with 21 additions and 13 deletions
@@ -167,7 +167,8 @@ const getCargoWarnings = computed(() => {
const [vehicleName, vehicleCargo] = stockVehicle.split(':'); const [vehicleName, vehicleCargo] = stockVehicle.split(':');
if (vehicleName.startsWith('WB117')) warnings.add(vehicleCargo ? 'twr-un1965' : 'tn-un1965'); if (vehicleName.startsWith('WB117')) warnings.add(vehicleCargo ? 'twr-un1965' : 'tn-un1965');
else if (vehicleName.startsWith('445Rb')) warnings.add('tn-un1202'); else if (vehicleName.startsWith('445Rb'))
warnings.add(vehicleCargo ? 'tn-un1202' : 'tn-un1202-empty');
else if (vehicleName.startsWith('EDK80')) warnings.add('pn-edk80'); else if (vehicleName.startsWith('EDK80')) warnings.add('pn-edk80');
if (vehicleCargo) { if (vehicleCargo) {
@@ -301,6 +302,7 @@ function selectCategory(i: number) {
.warnings-container { .warnings-container {
display: flex; display: flex;
flex-wrap: wrap;
gap: 0.5em; gap: 0.5em;
} }
@@ -312,5 +314,9 @@ function selectCategory(i: number) {
.categories-select { .categories-select {
justify-content: center; justify-content: center;
} }
.warnings-container {
justify-content: center;
}
} }
</style> </style>
+7 -6
View File
@@ -449,12 +449,13 @@
}, },
"cargo-warnings": { "cargo-warnings": {
"title": "Additional cargo warnings:", "title": "Additional cargo warnings:",
"pn-innofreight": "PN - Innofreight C45: exceeded gauge", "pn-innofreight": "PN: Innofreight C45: exceeded gauge",
"twr-un1965": "TWR - LPG tanks (UN 1965)", "twr-un1965": "TWR: UN1965 (LPG)",
"tn-un1965": "TN - empty LPG tanks (UN 1965)", "tn-un1965": "TN: unclean tanks after UN1965",
"tn-un1202": "TN - diesel fuel (UN 1202)", "tn-un1202": "TN: UN1202 (diesel fuel)",
"pn-military": "PN - military transport", "tn-un1202-empty": "TN: unclean tanks after UN1202",
"pn-edk80": "PN - EDK80 railway crane" "pn-military": "PN: military transport",
"pn-edk80": "PN: EDK80 railway crane"
}, },
"train-stats": { "train-stats": {
"stats-button": "STATISTICS", "stats-button": "STATISTICS",
+7 -6
View File
@@ -436,12 +436,13 @@
}, },
"cargo-warnings": { "cargo-warnings": {
"title": "Dodatkowe uwagi przewozowe:", "title": "Dodatkowe uwagi przewozowe:",
"pn-innofreight": "PN - Innofreight C45: przekroczona skrajnia", "pn-innofreight": "PN: Innofreight C45: przekroczona skrajnia",
"twr-un1965": "TWR - gazy węglowodorowe skroplone (UN 1965)", "twr-un1965": "TWR: UN1965 (LPG)",
"tn-un1965": "TN - gazy węglowodorowe skroplone - puste cysterny (UN 1965)", "tn-un1965": "TN: brudne cysterny po UN1965",
"tn-un1202": "TN - olej napędowy (UN 1202)", "tn-un1202": "TN: UN1202 (olej napędowy)",
"pn-military": "PN - transport wojskowy", "tn-un1202-empty": "TN: brudne cysterny po UN1202",
"pn-edk80": "PN - żuraw kolejowy EDK80" "pn-military": "PN: transport wojskowy",
"pn-edk80": "PN: żuraw kolejowy EDK80"
}, },
"train-stats": { "train-stats": {
"stats-button": "STATYSTYKI", "stats-button": "STATYSTYKI",