add unsubscribe and view mail on the web buttons
This commit is contained in:
parent
8bdd63afe2
commit
f095954a33
20 changed files with 289 additions and 224 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="wrapper" v-if="pageStatus === 'draft'">
|
||||
<div class="wrapper" v-if="pageStatus !== 'listed'">
|
||||
<div class="test-wrapper">
|
||||
<k-button
|
||||
@click="send($event, true)"
|
||||
|
|
@ -102,18 +102,9 @@ async function send(event, isTest = false) {
|
|||
error: null,
|
||||
};
|
||||
|
||||
if (!isTest) {
|
||||
setTimeout(() => {
|
||||
location.href = location.href;
|
||||
}, 2000);
|
||||
} else {
|
||||
currentBtnState.value = {
|
||||
icon: "plane",
|
||||
text: "Re-tester",
|
||||
theme: null,
|
||||
error: null,
|
||||
};
|
||||
}
|
||||
setTimeout(() => {
|
||||
location.href = location.href;
|
||||
}, 2000);
|
||||
} else {
|
||||
throw new Error(data.message || "Erreur inconnue");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue