enhance: show newsletter recipients
This commit is contained in:
parent
f8192a187b
commit
fdbf9e7f0a
3 changed files with 142 additions and 0 deletions
|
@ -45,6 +45,14 @@ export const useNewsletterPrintoutStore = defineStore("newsletterPrintout", {
|
|||
responseType: "blob",
|
||||
});
|
||||
},
|
||||
fetchNewsletterPrintReceivers(): Promise<AxiosResponse<any, any>> {
|
||||
const newsletterId = useNewsletterStore().activeNewsletter;
|
||||
return http.get(`/admin/newsletter/${newsletterId}/printrecipients`);
|
||||
},
|
||||
fetchNewsletterMailReceivers(): Promise<AxiosResponse<any, any>> {
|
||||
const newsletterId = useNewsletterStore().activeNewsletter;
|
||||
return http.get(`/admin/newsletter/${newsletterId}/mailrecipients`);
|
||||
},
|
||||
createNewsletterMailPreview() {
|
||||
this.sendingPreview = "loading";
|
||||
const newsletterId = useNewsletterStore().activeNewsletter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue