mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-02 21:18:12 +00:00
@@ -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';
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, defineComponent, ref, watch } from 'vue';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { Converter } from 'showdown';
|
||||
import { useStore } from '../store/store';
|
||||
|
||||
@@ -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