Ghost/ghost/admin/app/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
..
action.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
api-key.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
base.js updated to use new model._meta 2020-02-10 12:41:35 +00:00
custom-theme-setting-list.js Added customThemeSettings service with all-records-in-one save request 2021-09-28 16:50:28 +01:00
custom-theme-setting.js Added support for boolean custom theme settings 2021-10-13 17:55:17 +01:00
email-recipient.js Added activity feed to member details screen (#1796) 2020-12-10 11:38:38 +00:00
email.js Added email open rate to posts list in admin (#1772) 2020-11-26 17:19:05 +00:00
integration.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
invite.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member-product.js Wired up Member details screen to Custom Products 2021-04-26 17:28:39 +01:00
member-subscription.js Updated member model to use new subscriptions structure 2019-10-03 23:10:42 +05:30
member.js 🐛 Fixed slow loading and high memory usage of members list screen 2022-03-15 18:26:24 +00:00
navigation-item.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
newsletter.js Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
notification.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
offer.js Updated default offer duration as once 2021-10-19 00:19:32 +05:30
page.js 🎨 Separated post and page list screens (#1101) 2019-02-22 10:17:33 +07:00
post.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
product-benefit-item.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
product.js Added default visibility to new tiers 2022-03-08 14:20:24 +05:30
role.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
setting.js Updated specific tier handling for default post access setting (#2246) 2022-02-04 21:00:59 +05:30
slack-integration.js Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
snippet.js Renamed snippet.title to snippet.name for consistency 2020-10-16 10:15:07 +01:00
stripe-price.js Updated price description to sentence case 2021-05-10 18:48:39 +05:30
tag.js Added UI for setting tag metadata (#1632) 2020-07-13 14:58:13 +02:00
theme.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
user.js Renamed isAdmin/isOwner/isAdminOrOwner to reduce confusion 2021-07-12 14:55:56 +02:00
webhook.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00