diff --git a/.gitignore b/.gitignore index 3c4e6529..6c8c3e4a 100644 --- a/.gitignore +++ b/.gitignore @@ -277,10 +277,11 @@ cypress/test-reports git-crypt-encrypted-files-check.txt - /server/vbv_lernwelt/static/css/tailwind.css /server/vbv_lernwelt/static/vue/ /server/vbv_lernwelt/static/storybook /server/vbv_lernwelt/templates/vue/index.html /server/vbv_lernwelt/media /client/src/gql/dist/minifiedSchema.json + +/sftptest/ diff --git a/client/src/components/onboarding/OrganisationAddress.vue b/client/src/components/onboarding/OrganisationAddress.vue index 37c943bf..b8b59889 100644 --- a/client/src/components/onboarding/OrganisationAddress.vue +++ b/client/src/components/onboarding/OrganisationAddress.vue @@ -4,12 +4,12 @@ import { useEntities } from "@/services/entities"; const props = defineProps<{ modelValue: { - company_name: string; - company_street: string; - company_street_number: string; - company_postal_code: string; - company_city: string; - company_country: string; + organisation_detail_name: string; + organisation_street: string; + organisation_street_number: string; + organisation_postal_code: string; + organisation_city: string; + organisation_country_code: string; }; }>(); @@ -39,7 +39,7 @@ const orgAddress = computed({
diff --git a/client/src/components/onboarding/PersonalAddress.vue b/client/src/components/onboarding/PersonalAddress.vue index b3ae2371..dfa85eac 100644 --- a/client/src/components/onboarding/PersonalAddress.vue +++ b/client/src/components/onboarding/PersonalAddress.vue @@ -10,7 +10,7 @@ const props = defineProps<{ street_number: string; postal_code: string; city: string; - country: string; + country_code: string; }; }>(); @@ -147,13 +147,17 @@ const address = computed({
diff --git a/client/src/components/personalProfile/ProfileEdit.vue b/client/src/components/personalProfile/ProfileEdit.vue index ca96484a..77d0da8d 100644 --- a/client/src/components/personalProfile/ProfileEdit.vue +++ b/client/src/components/personalProfile/ProfileEdit.vue @@ -20,23 +20,25 @@ const formData = ref({ street_number: user.street_number, postal_code: user.postal_code, city: user.city, - country_id: user.country?.id, + country_code: user.country?.country_code, organisation: user.organisation, organisation_street: user.organisation_street, organisation_street_number: user.organisation_street_number, organisation_postal_code: user.organisation_postal_code, organisation_city: user.organisation_city, - organisation_country_id: user.organisation_country?.id, + organisation_country_code: user.organisation_country?.country_code, invoice_address: user.invoice_address, }); async function save() { - const { country_id, organisation_country_id, ...profileData } = formData.value; + const { country_code, organisation_country_code, ...profileData } = formData.value; const typedProfileData: Partial = { ...profileData }; - typedProfileData.country = countries.value.find((c) => c.id === country_id); + typedProfileData.country = countries.value.find( + (c) => c.country_code === country_code + ); typedProfileData.organisation_country = countries.value.find( - (c) => c.id === organisation_country_id + (c) => c.country_code === organisation_country_code ); await user.updateUserProfile(typedProfileData); @@ -219,12 +221,16 @@ async function avatarUpload(e: Event) { @@ -325,13 +331,17 @@ async function avatarUpload(e: Event) { diff --git a/client/src/pages/onboarding/vv/CheckoutAddress.vue b/client/src/pages/onboarding/vv/CheckoutAddress.vue index 6fabc32d..50f94aa8 100644 --- a/client/src/pages/onboarding/vv/CheckoutAddress.vue +++ b/client/src/pages/onboarding/vv/CheckoutAddress.vue @@ -1,33 +1,15 @@