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