From 794de7e3c8d0eadca0a193adb2554f9ae866013a Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 27 Nov 2024 10:07:46 +0100 Subject: [PATCH] sms alarming flag --- .../member/MemberCommunicationCreateModal.vue | 5 +++++ .../member/MemberCommunicationEditModal.vue | 9 +++++++-- .../member/MemberCommunicationListItem.vue | 3 ++- src/main.css | 3 ++- src/stores/admin/communication.ts | 2 ++ src/viewmodels/admin/communication.models.ts | 3 +++ src/viewmodels/admin/member.models.ts | 1 + .../admin/club/members/MemberOverview.vue | 18 ++++++++++++++++++ 8 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/components/admin/club/member/MemberCommunicationCreateModal.vue b/src/components/admin/club/member/MemberCommunicationCreateModal.vue index 59375b3..734b73e 100644 --- a/src/components/admin/club/member/MemberCommunicationCreateModal.vue +++ b/src/components/admin/club/member/MemberCommunicationCreateModal.vue @@ -93,6 +93,10 @@ +
+ + +
@@ -163,6 +167,7 @@ export default defineComponent({ streetNumber: formData.streetNumber?.value, streetNumberAddition: formData.streetNumberAddition?.value, isNewsletterMain: formData.isNewsletterMain.checked, + isSMSAlarming: formData.isSMSAlarming?.checked, typeId: this.selectedCommunicationType.id, }; this.createCommunication(createCommunication) diff --git a/src/components/admin/club/member/MemberCommunicationEditModal.vue b/src/components/admin/club/member/MemberCommunicationEditModal.vue index 9e9c478..569c55e 100644 --- a/src/components/admin/club/member/MemberCommunicationEditModal.vue +++ b/src/components/admin/club/member/MemberCommunicationEditModal.vue @@ -6,7 +6,7 @@

↺ laden fehlgeschlagen

-
+

Type: {{ communication.type.type }}

@@ -42,6 +42,10 @@
+
+ + +
@@ -120,7 +124,7 @@ export default defineComponent({ this.loading = "failed"; }); }, - triggerCreate(e: any) { + triggerUpdate(e: any) { if (this.communication == null) return; let formData = e.target.elements; let updateCommunication: UpdateCommunicationViewModel = { @@ -133,6 +137,7 @@ export default defineComponent({ streetNumber: formData.streetNumber?.value, streetNumberAddition: formData.streetNumberAddition?.value, isNewsletterMain: formData.isNewsletterMain.checked, + isSMSAlarming: formData.isSMSAlarming?.checked, }; this.updateCommunication(updateCommunication) .then(() => { diff --git a/src/components/admin/club/member/MemberCommunicationListItem.vue b/src/components/admin/club/member/MemberCommunicationListItem.vue index e375613..7e09f13 100644 --- a/src/components/admin/club/member/MemberCommunicationListItem.vue +++ b/src/components/admin/club/member/MemberCommunicationListItem.vue @@ -1,6 +1,7 @@