From c40b53b2009b669ddd62754a9f0bc4594ba99004 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 20 Jan 2025 09:43:48 +0100 Subject: [PATCH 1/3] member search component --- src/components/admin/MemberSearchSelect.vue | 168 ++++++++++++++++++ src/stores/admin/club/member/member.ts | 14 +- .../club/newsletter/NewsletterRecipients.vue | 96 ++-------- .../admin/club/protocol/ProtocolPresence.vue | 104 ++--------- 4 files changed, 214 insertions(+), 168 deletions(-) create mode 100644 src/components/admin/MemberSearchSelect.vue diff --git a/src/components/admin/MemberSearchSelect.vue b/src/components/admin/MemberSearchSelect.vue new file mode 100644 index 0000000..e9013f2 --- /dev/null +++ b/src/components/admin/MemberSearchSelect.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/stores/admin/club/member/member.ts b/src/stores/admin/club/member/member.ts index af803f5..1e1a30e 100644 --- a/src/stores/admin/club/member/member.ts +++ b/src/stores/admin/club/member/member.ts @@ -40,6 +40,16 @@ export const useMemberStore = defineStore("member", { this.loading = "failed"; }); }, + async getMembersByIds(ids: Array): Promise> { + return await http.get(`/admin/member?ids=${ids.join(",")}&noLimit=true`).then((res) => { + return { ...res, data: res.data.members }; + }); + }, + async searchMembers(search: string): Promise> { + return await http.get(`/admin/member?search=${search}&noLimit=true`).then((res) => { + return { ...res, data: res.data.members }; + }); + }, fetchMemberByActiveId() { this.loadingActive = "loading"; http @@ -84,10 +94,10 @@ export const useMemberStore = defineStore("member", { this.fetchMembers(); return result; }, - async printMemberList(){ + async printMemberList() { return http.get(`/admin/member/print/namelist`, { responseType: "blob", }); - } + }, }, }); diff --git a/src/views/admin/club/newsletter/NewsletterRecipients.vue b/src/views/admin/club/newsletter/NewsletterRecipients.vue index 4e55526..0271704 100644 --- a/src/views/admin/club/newsletter/NewsletterRecipients.vue +++ b/src/views/admin/club/newsletter/NewsletterRecipients.vue @@ -23,63 +23,14 @@ -
- - weitere Empfänger suchen -
- - - - - - -
  • - Keine Auswahl -
  • -
    + - -
  • - - {{ member.firstname }} {{ member.lastname }} {{ member.nameaffix }} - - - -
  • -
    -
    -
    -
    -
    -

    Ausgewählte Empfänger

    + + diff --git a/src/stores/admin/navigation.ts b/src/stores/admin/navigation.ts index a3f6eeb..782e42f 100644 --- a/src/stores/admin/navigation.ts +++ b/src/stores/admin/navigation.ts @@ -63,7 +63,7 @@ export const useNavigationStore = defineStore("navigation", { { key: "settings", title: "Einstellungen", - levelDefault: "qualification", + levelDefault: "award", } as topLevelNavigationModel, ] : []), diff --git a/src/views/public/calendar/Calendar.vue b/src/views/public/calendar/Calendar.vue index 0cc8d9d..956a34d 100644 --- a/src/views/public/calendar/Calendar.vue +++ b/src/views/public/calendar/Calendar.vue @@ -73,6 +73,7 @@ export default defineComponent({ weekText: "KW", allDaySlot: false, events: this.formattedItems, + eventClick: this.eventClick, }; }, }, @@ -92,6 +93,12 @@ export default defineComponent({ openLinkModal(e: any) { this.openModal(markRaw(defineAsyncComponent(() => import("@/components/public/calendar/CalendarLinkModal.vue")))); }, + eventClick(e: any) { + this.openModal( + markRaw(defineAsyncComponent(() => import("@/components/public/calendar/ShowCalendarEntryModal.vue"))), + this.calendars.find((c) => c.id == e.event.id) + ); + }, }, }); From 45ad07a906c8ed0c9729ec7b2fdb4b3b3eea4841 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 20 Jan 2025 12:43:35 +0100 Subject: [PATCH 3/3] fix: create of calendar type with optional passphrase --- .../admin/club/calendar/CreateCalendarModal.vue | 2 +- .../admin/club/calendar/UpdateCalendarModal.vue | 2 +- .../settings/calendarType/CreateCalendarTypeModal.vue | 4 +--- .../admin/settings/calendarType/CalendarTypeEdit.vue | 8 +++++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/admin/club/calendar/CreateCalendarModal.vue b/src/components/admin/club/calendar/CreateCalendarModal.vue index 7cef3bc..7e27380 100644 --- a/src/components/admin/club/calendar/CreateCalendarModal.vue +++ b/src/components/admin/club/calendar/CreateCalendarModal.vue @@ -1,7 +1,7 @@