Ghost/ghost/admin/app/adapters
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 [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
application.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
base.js Fixed API path generation for multi-segmented model names 2021-09-23 23:52:50 +01:00
custom-theme-setting-list.js Added customThemeSettings service with all-records-in-one save request 2021-09-28 16:50:28 +01:00
email.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
embedded-relation-adapter.js Fixed include transformation in query for embedded relations 2022-02-28 15:44:57 +05:30
label.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
member.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
offer.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
page.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
post.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
product.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
setting.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
tag.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
theme.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
user.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00