Merge pull request #20 from Spythere/development

Hotfix for 1.6.0
This commit is contained in:
Spythere
2025-07-11 02:31:13 +02:00
committed by GitHub
2 changed files with 3 additions and 5 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';
+1 -3
View File
@@ -21,7 +21,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed, defineComponent, ref, watch } from 'vue'; import { computed, ref, watch } from 'vue';
import { Converter } from 'showdown'; import { Converter } from 'showdown';
import { useStore } from '../store/store'; import { useStore } from '../store/store';
@@ -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();
} }