Ghost/ghost/admin/mirage/models
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
..
api-key.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
config.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
custom-theme-setting.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
email.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
integration.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
invite.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
label.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
member-activity-event.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
member.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
notification.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
page.js
post.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
product-benefit.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
product.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
role.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
site.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
snippet.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
subscriber.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
subscription.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
tag.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
theme.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
user.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
webhook.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00