From 23a1f63d24d7f66341619ca4d972ee379b7a6e84 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 27 Jul 2021 16:31:26 +0100 Subject: [PATCH] Added free/paid toggle to email preview modal refs https://github.com/TryGhost/Team/issues/927 - the `email-cta` card can be segmented so only free or paid members can see the content, it should be possible for authors to preview what that will look like in either case --- .../components/modal-post-preview/email.hbs | 10 +++++++- .../components/modal-post-preview/email.js | 23 ++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/ghost/admin/app/components/modal-post-preview/email.hbs b/ghost/admin/app/components/modal-post-preview/email.hbs index 77969c8307..0f650036e6 100644 --- a/ghost/admin/app/components/modal-post-preview/email.hbs +++ b/ghost/admin/app/components/modal-post-preview/email.hbs @@ -10,7 +10,14 @@
+ {{#if (feature "emailCardSegments")}} +
+ + +
+ {{else}} Send a test newsletter + {{/if}}
{{this.sendPreviewEmailError}}
{{/if}}
+