mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 05:28:13 +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';
|
||||
},
|
||||
|
||||
@@ -20,6 +20,7 @@ export interface ISceneryOnline {
|
||||
export interface ISceneryData {
|
||||
id: string;
|
||||
name: string;
|
||||
abbr: string;
|
||||
SUP: boolean;
|
||||
authors: string;
|
||||
availability: string;
|
||||
|
||||
Reference in New Issue
Block a user