Skip to content

Commit

Permalink
Merge pull request #291 from Badsender-com/feat-preview-mail
Browse files Browse the repository at this point in the history
feat-preview-mail
  • Loading branch information
medamineziraoui committed Apr 7, 2021
2 parents 2a693bb + 1e98180 commit f1cf324
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/server/template/generate-preview.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ async function previewMail({ mailingId, cookies }) {
await page.setCookie(...puppeteersCookies);
await page.goto(getMailPreviewUrl(mailingId), {
waitUntil: 'networkidle0',
timeout: 0,
});

await page.waitForSelector(BLOCK_BODY_MAIL_SELECTOR_WITH_SHARP); // wait for the selector to load
Expand Down
1 change: 1 addition & 0 deletions packages/ui/helpers/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default {
settings: 'Settings',
download: 'Download',
preview: 'Preview',
previewMailAlt: 'Preview of the email template',
newPreview: 'Create a preview',
name: 'Name',
description: 'Description',
Expand Down
1 change: 1 addition & 0 deletions packages/ui/helpers/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default {
show: 'Visualiser',
download: 'Télécharger',
preview: 'Prévisualiser',
previewMailAlt: 'Aperçu du template du mail',
newPreview: 'Créer une prévisulisation',
name: 'Nom',
description: 'Description',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/routes/mailings/__partials/preview-mail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
<img
class="max_width_img"
:src="`data:image/png;base64,${previewImage}`"
alt="aperçu du template du mail"
:alt="$t('global.previewMailAlt')"
>
</div>
</div>
Expand Down

0 comments on commit f1cf324

Please sign in to comment.