Cahnges
This commit is contained in:
@@ -140,6 +140,24 @@ const saveSignature = async () => {
|
||||
contentSaved.value = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const addToNewsletter = async () => {
|
||||
const {data,error} = await axios({
|
||||
url: "https://newsletter.fedeo.io/api/public/subscription",
|
||||
method: "post",
|
||||
data: {
|
||||
email: dataStore.activeProfile.email,
|
||||
name: dataStore.activeProfile.name,
|
||||
list_uuids: ["b97453fd-14b2-4b25-8f9b-b83847317ea3"],
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
console.log(data)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -268,6 +286,16 @@ const saveSignature = async () => {
|
||||
@updateContent="contentChanged"
|
||||
:preloadedContent="emailSignature"
|
||||
/>
|
||||
|
||||
<UDivider>Newsletter</UDivider>
|
||||
|
||||
<UButton
|
||||
@click="addToNewsletter"
|
||||
variant="outline"
|
||||
>
|
||||
In Newsletter eintragen
|
||||
</UButton>
|
||||
|
||||
</div>
|
||||
<div v-if="item.label === 'Logbuch'">
|
||||
<HistoryDisplay
|
||||
|
||||
Reference in New Issue
Block a user