+
{{ communication.type.type }} {{ communication.preferred ? "(bevorzugt)" : "" }}
@@ -16,7 +17,7 @@
import { defineAsyncComponent, defineComponent, markRaw, type PropType } from "vue";
import { mapState, mapActions } from "pinia";
import type { CommunicationViewModel } from "@/viewmodels/admin/communication.models";
-import { EnvelopeIcon, PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
+import { EnvelopeIcon, PencilIcon, TrashIcon, FireIcon } from "@heroicons/vue/24/outline";
import { useModalStore } from "@/stores/modal";
import { useAbilityStore } from "@/stores/ability";
diff --git a/src/main.css b/src/main.css
index 60e72ac..304440c 100644
--- a/src/main.css
+++ b/src/main.css
@@ -56,7 +56,8 @@ body {
@apply w-full h-full overflow-hidden flex flex-col;
}
-button:not([class*="ql"] *):not([class*="fc"]):not([headlessui]):not([id*="headlessui"]):not([class*="headlessui"]),
+/*:not([headlessui]):not([id*="headlessui"]):not([class*="headlessui"])*/
+button:not([class*="ql"] *):not([class*="fc"]),
a[button] {
@apply relative box-border h-10 w-full flex justify-center py-2 px-4 text-sm font-medium rounded-md focus:outline-none focus:ring-0;
}
diff --git a/src/stores/admin/communication.ts b/src/stores/admin/communication.ts
index 9816ff7..d0ed687 100644
--- a/src/stores/admin/communication.ts
+++ b/src/stores/admin/communication.ts
@@ -47,6 +47,7 @@ export const useCommunicationStore = defineStore("communication", {
streetNumberAddition: communication.streetNumberAddition,
typeId: communication.typeId,
isNewsletterMain: communication.isNewsletterMain,
+ isSMSAlarming: communication.isSMSAlarming,
});
this.fetchCommunicationsForMember();
return result;
@@ -62,6 +63,7 @@ export const useCommunicationStore = defineStore("communication", {
streetNumber: communication.streetNumber,
streetNumberAddition: communication.streetNumberAddition,
isNewsletterMain: communication.isNewsletterMain,
+ isSMSAlarming: communication.isSMSAlarming,
});
this.fetchCommunicationsForMember();
return result;
diff --git a/src/viewmodels/admin/communication.models.ts b/src/viewmodels/admin/communication.models.ts
index e1b4ed6..4f54af2 100644
--- a/src/viewmodels/admin/communication.models.ts
+++ b/src/viewmodels/admin/communication.models.ts
@@ -11,6 +11,7 @@ export interface CommunicationViewModel {
streetNumberAddition: string;
type: CommunicationTypeViewModel;
isNewsletterMain: boolean;
+ isSMSAlarming: boolean;
}
export interface CreateCommunicationViewModel {
@@ -23,6 +24,7 @@ export interface CreateCommunicationViewModel {
streetNumberAddition: string;
typeId: number;
isNewsletterMain: boolean;
+ isSMSAlarming: boolean;
}
export interface UpdateCommunicationViewModel {
@@ -35,4 +37,5 @@ export interface UpdateCommunicationViewModel {
streetNumber: number;
streetNumberAddition: string;
isNewsletterMain: boolean;
+ isSMSAlarming: boolean;
}
diff --git a/src/viewmodels/admin/member.models.ts b/src/viewmodels/admin/member.models.ts
index bb78be6..0f95af6 100644
--- a/src/viewmodels/admin/member.models.ts
+++ b/src/viewmodels/admin/member.models.ts
@@ -12,6 +12,7 @@ export interface MemberViewModel {
firstMembershipEntry?: MembershipViewModel;
lastMembershipEntry?: MembershipViewModel;
sendNewsletter?: CommunicationViewModel;
+ smsAlarming?: Array
;
preferredCommunication?: Array;
}
diff --git a/src/views/admin/club/members/MemberOverview.vue b/src/views/admin/club/members/MemberOverview.vue
index f4e7195..b08f682 100644
--- a/src/views/admin/club/members/MemberOverview.vue
+++ b/src/views/admin/club/members/MemberOverview.vue
@@ -74,6 +74,24 @@