hotfix: checkpoint abbreviation

This commit is contained in:
2025-07-11 02:29:41 +02:00
parent 92586fb880
commit 2efa4a4f9a
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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';
-2
View File
@@ -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();
} }