mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawka w info o pozycji pociągu
This commit is contained in:
@@ -58,8 +58,10 @@ export default defineComponent({
|
||||
displayTrainPosition(train: Train) {
|
||||
let positionString = '';
|
||||
|
||||
if (train.currentStationHash)
|
||||
positionString += this.$t('trains.current-scenery') + ' ' + train.currentStationName + ' ';
|
||||
positionString += this.$t('trains.current-scenery') + ' ';
|
||||
|
||||
if (train.currentStationHash) positionString += train.currentStationName + ' ';
|
||||
else positionString += train['currentStationName'].replace(/.[a-zA-Z0-9]+.sc/, '') + ' (offline) ';
|
||||
|
||||
if (train.signal) positionString += this.$t('trains.current-signal') + ' ' + train.signal + ' ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user