Ghost/ghost/admin/app/serializers
Kevin Ansfield e5c26aac89 Added newsletter dropdown to publish menu
closes https://github.com/TryGhost/Team/issues/1479

- updated post adapter to append `?newsletter_id=xyz` when passed a `newsletterId` adapterOption
- updated editor save task to pass `options.newsletterId` through as `adapterOptions.newsletterId`
- set up `post.newsletter` relationship ready for handling embedded newsletter association from the API
  - explicitly deleted when serializing back to the API as it doesn't yet ignore the attribute
- updated `<GhPublishmenu>` for newsletter support
  - fetches newsletters on first render so they are available in the dropdown
  - sets "default" (first in the ordered list) newsletter as the initially selected newsletter
  - adds newsletter dropdown to draft publish menu
  - passes `newsletterId` option to editor save task when it's set

This is a minimal implementation for testing. Not included:
- correct free/paid member counts based on selected newsletter
- correct member count in confirmation modal
- indication of selected newsletter for scheduled post
2022-04-06 10:22:06 +01:00
..
action.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
api-key.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
application.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
custom-theme-setting-list.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email-recipient.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
integration.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
invite.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
label.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member.js Removed last_seen_at from the api queries 2022-02-24 18:46:57 +01:00
notification.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
page.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
post.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
product.js 🐛 Fixed sending non-integer prices to tiers api (#2288) 2022-03-04 14:48:45 +05:30
role.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
setting.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
tag.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
theme.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
user.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
webhook.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00