feature: pobieranie skrótu posterunku z API

This commit is contained in:
2023-05-01 01:16:20 +02:00
parent 06d33a30ed
commit e5e0751024
3 changed files with 1900 additions and 1809 deletions
+5 -2
View File
@@ -223,8 +223,11 @@ export default defineComponent({
this.store.orderFooter.hour = currentFormattedHours();
this.store.orderFooter.minutes = currentFormattedMinutes();
if (this.fillCheckpointName)
this.store.orderFooter.checkpointName = this.store.orderFooter.stationName.slice(0, 2);
if (this.fillCheckpointName) {
const sceneryAbbrev = this.sceneriesData.find(({ name }) => name === this.store.orderFooter.stationName)?.abbr;
this.store.orderFooter.checkpointName = sceneryAbbrev || this.store.orderFooter.stationName.slice(0, 2);
}
this.store.orderMode = 'OrderMessage';
},