From 1f61f1aaf059a2e9d7209b9f4f487121a094282f Mon Sep 17 00:00:00 2001 From: Levin Date: Wed, 15 Jan 2025 21:50:06 +0100 Subject: [PATCH] it works? just like that? --- .../Checkin/AutocompleteListEntry.vue | 44 ++-- .../StationAutocomplete.vue | 4 - .../components/TripCreation/StationInput.vue | 221 ++++++++++++++++++ .../TripCreation/TripCreationPage.vue | 50 +++- 4 files changed, 292 insertions(+), 27 deletions(-) create mode 100644 resources/vue/components/TripCreation/StationInput.vue diff --git a/resources/vue/components/Checkin/AutocompleteListEntry.vue b/resources/vue/components/Checkin/AutocompleteListEntry.vue index 9d652fce6..e899ff4af 100644 --- a/resources/vue/components/Checkin/AutocompleteListEntry.vue +++ b/resources/vue/components/Checkin/AutocompleteListEntry.vue @@ -3,33 +3,35 @@ import {defineComponent} from 'vue' import {ShortStation} from "../../../types/Station"; export default defineComponent({ - name: "AutocompleteListEntry", - props: { - station: { - type: Object () as ShortStation, - required: false - }, - text: { - type: String, - required: false - }, - prefix: { - type: String, - required: false - } + name: "AutocompleteListEntry", + props: { + station: { + type: Object() as ShortStation, + required: false }, + text: { + type: String, + required: false + }, + prefix: { + type: String, + required: false + } + }, }) diff --git a/resources/vue/components/StationAutocomplete/StationAutocomplete.vue b/resources/vue/components/StationAutocomplete/StationAutocomplete.vue index a67b9b03c..7d3cf0fea 100644 --- a/resources/vue/components/StationAutocomplete/StationAutocomplete.vue +++ b/resources/vue/components/StationAutocomplete/StationAutocomplete.vue @@ -356,10 +356,6 @@ export default { diff --git a/resources/vue/components/TripCreation/TripCreationPage.vue b/resources/vue/components/TripCreation/TripCreationPage.vue index adb30df65..9f70f6a1c 100644 --- a/resources/vue/components/TripCreation/TripCreationPage.vue +++ b/resources/vue/components/TripCreation/TripCreationPage.vue @@ -2,10 +2,11 @@ import StationRow from "./StationRow.vue"; import {DateTime} from "luxon"; import {trans} from "laravel-vue-i18n"; +import StationInput from "./StationInput.vue"; export default { name: "TripCreationForm", - components: {StationRow}, + components: {StationInput, StationRow}, mounted() { this.initForm(); this.loadOperators(); @@ -213,7 +214,7 @@ export default {