mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 05:28:13 +00:00
hotfix: checkpoint abbreviation
This commit is contained in:
@@ -254,8 +254,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
if (this.fillCheckpointName) {
|
if (this.fillCheckpointName) {
|
||||||
const sceneryAbbrev = this.sceneriesData?.find(
|
const sceneryAbbrev = this.sceneriesData?.find(
|
||||||
({ name }) => name === this.selectedSceneryId
|
({ name }) => name === this.selectedScenery!.stationName
|
||||||
)?.abbr;
|
)?.abbr;
|
||||||
|
|
||||||
this.store.orderFooter.checkpointName =
|
this.store.orderFooter.checkpointName =
|
||||||
sceneryAbbrev || this.store.orderFooter.stationName.slice(0, 2);
|
sceneryAbbrev || this.store.orderFooter.stationName.slice(0, 2);
|
||||||
}
|
}
|
||||||
@@ -280,7 +281,6 @@ export default defineComponent({
|
|||||||
if (queryScenery) {
|
if (queryScenery) {
|
||||||
this.selectedSceneryId = `${queryScenery.stationName}|${queryScenery.stationHash}|${queryScenery.dispatcherName}|${queryScenery.region}`;
|
this.selectedSceneryId = `${queryScenery.stationName}|${queryScenery.stationHash}|${queryScenery.dispatcherName}|${queryScenery.region}`;
|
||||||
|
|
||||||
console.log(this.selectedRegion);
|
|
||||||
this.selectOption();
|
this.selectOption();
|
||||||
|
|
||||||
this.store.orderMode = 'OrderTrainPicker';
|
this.store.orderMode = 'OrderTrainPicker';
|
||||||
|
|||||||
@@ -32,8 +32,6 @@ const confirmButtonEl = ref<HTMLButtonElement | null>(null);
|
|||||||
watch(
|
watch(
|
||||||
computed(() => store.updateCardOpen),
|
computed(() => store.updateCardOpen),
|
||||||
(val) => {
|
(val) => {
|
||||||
console.log(val, confirmButtonEl);
|
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
confirmButtonEl.value?.focus();
|
confirmButtonEl.value?.focus();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user