mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
feature: pobieranie skrótu posterunku z API
This commit is contained in:
@@ -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';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user