From faadc71b1b034589619b3ce999f87a1a38a894e4 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 30 Dec 2024 14:46:39 +0100 Subject: [PATCH] styling & filtering --- src/views/admin/club/newsletter/NewsletterDates.vue | 7 +++++-- src/views/admin/club/newsletter/NewsletterPrintout.vue | 10 +++++----- .../admin/club/newsletter/NewsletterRecipients.vue | 1 + 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/admin/club/newsletter/NewsletterDates.vue b/src/views/admin/club/newsletter/NewsletterDates.vue index 0434655..cbc9414 100644 --- a/src/views/admin/club/newsletter/NewsletterDates.vue +++ b/src/views/admin/club/newsletter/NewsletterDates.vue @@ -75,7 +75,6 @@ @@ -124,7 +125,9 @@ export default defineComponent({ ...mapState(useCalendarStore, ["calendars"]), ...mapState(useAbilityStore, ["can"]), filteredCalendar() { - return this.calendars.filter((c) => !this.dates.map((d) => d.calendarId).includes(c.id)); + return this.calendars.filter( + (c) => !this.dates.map((d) => d.calendarId).includes(c.id) && new Date(c.starttime) >= new Date() + ); }, sortedDates() { return this.dates.sort( diff --git a/src/views/admin/club/newsletter/NewsletterPrintout.vue b/src/views/admin/club/newsletter/NewsletterPrintout.vue index 84a0a1c..0499e1a 100644 --- a/src/views/admin/club/newsletter/NewsletterPrintout.vue +++ b/src/views/admin/club/newsletter/NewsletterPrintout.vue @@ -10,7 +10,7 @@

{{ print }}

-
+
@@ -25,7 +25,7 @@