From 844bd9a8d5264a8601230f4c706728d94b872803 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Thu, 26 Dec 2024 12:04:00 +0100 Subject: [PATCH] Newsletter Config --- .../NewsletterConfigListItem.vue | 102 ++++++++++++++++++ .../templateUsage/TemplatePreviewModal.vue | 2 +- .../templateUsage/TemplateUsageListItem.vue | 14 +-- src/enums/newsletterConfigType.ts | 4 + src/router/index.ts | 2 +- src/stores/admin/newsletterConfig.ts | 46 ++++++++ .../admin/newsletterConfig.models.ts | 13 +++ .../newsletterConfig/NewsletterConfig.vue | 46 ++++++++ 8 files changed, 221 insertions(+), 8 deletions(-) create mode 100644 src/components/admin/settings/newsletterConfig/NewsletterConfigListItem.vue create mode 100644 src/enums/newsletterConfigType.ts create mode 100644 src/stores/admin/newsletterConfig.ts create mode 100644 src/viewmodels/admin/newsletterConfig.models.ts create mode 100644 src/views/admin/settings/newsletterConfig/NewsletterConfig.vue diff --git a/src/components/admin/settings/newsletterConfig/NewsletterConfigListItem.vue b/src/components/admin/settings/newsletterConfig/NewsletterConfigListItem.vue new file mode 100644 index 0000000..a8f8668 --- /dev/null +++ b/src/components/admin/settings/newsletterConfig/NewsletterConfigListItem.vue @@ -0,0 +1,102 @@ + + + + + diff --git a/src/components/admin/settings/templateUsage/TemplatePreviewModal.vue b/src/components/admin/settings/templateUsage/TemplatePreviewModal.vue index fd27db6..41e7c27 100644 --- a/src/components/admin/settings/templateUsage/TemplatePreviewModal.vue +++ b/src/components/admin/settings/templateUsage/TemplatePreviewModal.vue @@ -42,7 +42,7 @@ export default defineComponent({ (this.$refs.viewer as HTMLIFrameElement).src = window.URL.createObjectURL(blob); }) .catch(() => { - this.status = { status: "success" }; + this.status = { status: "failed" }; }); }, }, diff --git a/src/components/admin/settings/templateUsage/TemplateUsageListItem.vue b/src/components/admin/settings/templateUsage/TemplateUsageListItem.vue index 5b4d0b6..a82bc9d 100644 --- a/src/components/admin/settings/templateUsage/TemplateUsageListItem.vue +++ b/src/components/admin/settings/templateUsage/TemplateUsageListItem.vue @@ -6,13 +6,13 @@ - - @@ -21,21 +21,21 @@

Kopfzeile:

Hauptteil:

Fußzeile:

@@ -54,6 +54,7 @@ import Spinner from "@/components/Spinner.vue"; import SuccessCheckmark from "@/components/SuccessCheckmark.vue"; import FailureXMark from "@/components/FailureXMark.vue"; import { useModalStore } from "@/stores/modal"; +import { useAbilityStore } from "@/stores/ability"; + +