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.hour = currentFormattedHours();
|
||||||
this.store.orderFooter.minutes = currentFormattedMinutes();
|
this.store.orderFooter.minutes = currentFormattedMinutes();
|
||||||
|
|
||||||
if (this.fillCheckpointName)
|
if (this.fillCheckpointName) {
|
||||||
this.store.orderFooter.checkpointName = this.store.orderFooter.stationName.slice(0, 2);
|
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';
|
this.store.orderMode = 'OrderMessage';
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export interface ISceneryOnline {
|
|||||||
export interface ISceneryData {
|
export interface ISceneryData {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
abbr: string;
|
||||||
SUP: boolean;
|
SUP: boolean;
|
||||||
authors: string;
|
authors: string;
|
||||||
availability: string;
|
availability: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user