diff --git a/src/components/admin/club/member/MemberCommunicationCreateModal.vue b/src/components/admin/club/member/MemberCommunicationCreateModal.vue index 1c2af29..e3a31c0 100644 --- a/src/components/admin/club/member/MemberCommunicationCreateModal.vue +++ b/src/components/admin/club/member/MemberCommunicationCreateModal.vue @@ -69,6 +69,10 @@ +
+ + +
@@ -162,6 +166,7 @@ export default defineComponent({ preferred: formData.preferred.checked, mobile: formData.mobile?.value, email: formData.email?.value, + postalCode: formData.postalCode.value, city: formData.city?.value, street: formData.street?.value, streetNumber: formData.streetNumber?.value, diff --git a/src/components/admin/club/member/MemberCommunicationEditModal.vue b/src/components/admin/club/member/MemberCommunicationEditModal.vue index afe680f..cc3540d 100644 --- a/src/components/admin/club/member/MemberCommunicationEditModal.vue +++ b/src/components/admin/club/member/MemberCommunicationEditModal.vue @@ -18,6 +18,10 @@
+
+ + +
@@ -132,6 +136,7 @@ export default defineComponent({ preferred: formData.preferred.checked, mobile: formData.mobile?.value, email: formData.email?.value, + postalCode: formData.postalCode.value, city: formData.city?.value, street: formData.street?.value, streetNumber: formData.streetNumber?.value, diff --git a/src/stores/admin/club/member/communication.ts b/src/stores/admin/club/member/communication.ts index 9113e2b..8da4add 100644 --- a/src/stores/admin/club/member/communication.ts +++ b/src/stores/admin/club/member/communication.ts @@ -41,6 +41,7 @@ export const useCommunicationStore = defineStore("communication", { preferred: communication.preferred, mobile: communication.mobile, email: communication.email, + postalCode: communication.postalCode, city: communication.city, street: communication.street, streetNumber: communication.streetNumber, @@ -58,6 +59,7 @@ export const useCommunicationStore = defineStore("communication", { preferred: communication.preferred, mobile: communication.mobile, email: communication.email, + postalCode: communication.postalCode, city: communication.city, street: communication.street, streetNumber: communication.streetNumber, diff --git a/src/types/fieldTypes.ts b/src/types/fieldTypes.ts index 95e7ec2..769138b 100644 --- a/src/types/fieldTypes.ts +++ b/src/types/fieldTypes.ts @@ -1 +1,8 @@ -export type CommunicationFieldType = "mobile" | "email" | "city" | "street" | "streetNumber" | "streetNumberAddition"; +export type CommunicationFieldType = + | "mobile" + | "email" + | "postalCode" + | "city" + | "street" + | "streetNumber" + | "streetNumberAddition"; diff --git a/src/viewmodels/admin/club/member/communication.models.ts b/src/viewmodels/admin/club/member/communication.models.ts index 8ca4af0..e4db956 100644 --- a/src/viewmodels/admin/club/member/communication.models.ts +++ b/src/viewmodels/admin/club/member/communication.models.ts @@ -5,6 +5,7 @@ export interface CommunicationViewModel { preferred: boolean; mobile: string; email: string; + postalCode: string; city: string; street: string; streetNumber: number; @@ -18,6 +19,7 @@ export interface CreateCommunicationViewModel { preferred: boolean; mobile: string; email: string; + postalCode: string; city: string; street: string; streetNumber: number; @@ -32,6 +34,7 @@ export interface UpdateCommunicationViewModel { preferred: boolean; mobile: string; email: string; + postalCode: string; city: string; street: string; streetNumber: number;