Ghost/ghost/admin/app/components/editor-labs/modals
Kevin Ansfield 5415fb6e01 Updated post email preview to render with the selected newsletter (#2382)
refs https://github.com/TryGhost/Team/issues/1621
reqs https://github.com/TryGhost/Ghost/pull/14820

We want to allow previewing emails based on the newsletter selected in the publish flow.

- passed the selected newsletter from `<PublishManagement>` through to the preview modal then through to the email preview component
- removed tracked `newsletter` property and fetching of the default newsletter in the email preview component that was in place to allow `senderName` and `senderEmail` to be used in the component
- added `newsletter` getter that uses the `post.newsletter` or the passed in selected newsletter
- updated the email preview fetching to pass `?newsletter=slug` so the email is rendered with the correct newlsetter
2022-05-16 12:16:12 +01:00
..
preview Updated post email preview to render with the selected newsletter (#2382) 2022-05-16 12:16:12 +01:00
publish-flow Updated error message for published post with failed email sending 2022-05-16 10:09:42 +02:00
preview.hbs Updated post email preview to render with the selected newsletter (#2382) 2022-05-16 12:16:12 +01:00
preview.js Remember post preview tab when switching between preview/publish 2022-05-13 17:43:34 +01:00
publish-flow.hbs Added separate "published but email failed" state to publish flow 2022-05-12 15:28:35 +01:00
publish-flow.js Added separate "published but email failed" state to publish flow 2022-05-12 15:28:35 +01:00
update-flow.hbs Updated publishing with renamed newsletter and email_segment options (#2380) 2022-05-16 10:18:46 +02:00
update-flow.js Added newsletter name to publish update flow copy 2022-05-12 11:44:10 +01:00