Merge branch 'milestone/ff-admin-unit' into unit/#70-build-ui-demo
This commit is contained in:
commit
00fad29b25
18 changed files with 219 additions and 43 deletions
|
@ -27,7 +27,7 @@
|
|||
primary
|
||||
class="!w-fit whitespace-nowrap flex flex-row gap-2"
|
||||
:disabled="printing != undefined"
|
||||
@click="createNewsletterPrintout"
|
||||
@click="openPdfCommit"
|
||||
>
|
||||
Newsletter drucken
|
||||
<Spinner v-if="printing == 'loading'" class="my-auto" />
|
||||
|
@ -39,7 +39,7 @@
|
|||
primary
|
||||
class="!w-fit whitespace-nowrap flex flex-row gap-2"
|
||||
:disabled="sending != undefined"
|
||||
@click="createNewsletterSend"
|
||||
@click="openMailCommit"
|
||||
>
|
||||
Mails versenden
|
||||
<Spinner v-if="sending == 'loading'" class="my-auto" />
|
||||
|
@ -108,10 +108,8 @@ export default defineComponent({
|
|||
...mapActions(useModalStore, ["openModal"]),
|
||||
...mapActions(useNewsletterPrintoutStore, [
|
||||
"fetchNewsletterPrintout",
|
||||
"createNewsletterPrintout",
|
||||
"fetchNewsletterPrintoutById",
|
||||
"createNewsletterMailPreview",
|
||||
"createNewsletterSend",
|
||||
]),
|
||||
openPdfShow(filename?: string) {
|
||||
this.openModal(
|
||||
|
@ -132,6 +130,20 @@ export default defineComponent({
|
|||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
openPdfCommit() {
|
||||
this.openModal(
|
||||
markRaw(
|
||||
defineAsyncComponent(() => import("@/components/admin/club/newsletter/NewsletterPrintingRecipientsModal.vue"))
|
||||
)
|
||||
);
|
||||
},
|
||||
openMailCommit() {
|
||||
this.openModal(
|
||||
markRaw(
|
||||
defineAsyncComponent(() => import("@/components/admin/club/newsletter/NewsletterMailRecipientsModal.vue"))
|
||||
)
|
||||
);
|
||||
},
|
||||
openPdfLogs() {
|
||||
this.openModal(
|
||||
markRaw(
|
||||
|
|
|
@ -134,10 +134,10 @@ export default defineComponent({
|
|||
if (val == "def") {
|
||||
this.activeNewsletterObj.recipientsByQueryId = null;
|
||||
this.activeNewsletterObj.recipientsByQuery = null;
|
||||
} else if (this.queries.find((q) => q.id == parseInt(val))) {
|
||||
this.activeNewsletterObj.recipientsByQueryId = parseInt(val);
|
||||
this.activeNewsletterObj.recipientsByQuery = cloneDeep(this.queries.find((q) => q.id == parseInt(val)));
|
||||
this.sendQuery(0, 1000, this.recipientsByQuery?.query);
|
||||
} else if (this.queries.find((q) => q.id == val)) {
|
||||
this.activeNewsletterObj.recipientsByQueryId = val;
|
||||
this.activeNewsletterObj.recipientsByQuery = cloneDeep(this.queries.find((q) => q.id == val));
|
||||
this.sendQuery(0, 0, this.recipientsByQuery?.query, true);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -171,7 +171,7 @@ export default defineComponent({
|
|||
},
|
||||
loadQuery() {
|
||||
if (this.recipientsByQuery) {
|
||||
this.sendQuery(0, 1000, this.recipientsByQuery.query);
|
||||
this.sendQuery(0, 0, this.recipientsByQuery.query, true);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue