diff --git a/ghost/admin/app/adapters/post.js b/ghost/admin/app/adapters/post.js index 86bd0846b7..9af059847b 100644 --- a/ghost/admin/app/adapters/post.js +++ b/ghost/admin/app/adapters/post.js @@ -10,9 +10,7 @@ export default class Post extends ApplicationAdapter { const newsletter = snapshot.adapterOptions.newsletter; parsedUrl.searchParams.append('newsletter', newsletter); - // TODO: cleanup sendEmailWhenPublished when removing publishingFlow flag - let emailSegment = snapshot?.adapterOptions?.emailSegment - || snapshot?.adapterOptions?.sendEmailWhenPublished; + let emailSegment = snapshot?.adapterOptions?.emailSegment; if (emailSegment) { if (emailSegment === 'status:free,status:-free') { diff --git a/ghost/admin/app/components/gh-distribution-action-select.hbs b/ghost/admin/app/components/gh-distribution-action-select.hbs deleted file mode 100644 index 858291ff6f..0000000000 --- a/ghost/admin/app/components/gh-distribution-action-select.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
\ No newline at end of file diff --git a/ghost/admin/app/components/gh-distribution-action-select.js b/ghost/admin/app/components/gh-distribution-action-select.js deleted file mode 100644 index d597f3267f..0000000000 --- a/ghost/admin/app/components/gh-distribution-action-select.js +++ /dev/null @@ -1,24 +0,0 @@ -import Component from '@glimmer/component'; -import {action} from '@ember/object'; - -export default class GhDistributionActionSelect extends Component { - availablePublishActions = [{ - value: 'publish_send', - name: 'publish & send' - }, { - value: 'publish', - name: 'publish' - }, { - value: 'send', - name: 'send' - }]; - - get distributionValue() { - return this.availablePublishActions.findBy('value', this.args.distributionAction); - } - - @action - setDistributionAction(newAction) { - this.args.setDistributionAction(newAction.value); - } -} diff --git a/ghost/admin/app/components/gh-publishmenu-draft.hbs b/ghost/admin/app/components/gh-publishmenu-draft.hbs deleted file mode 100644 index d2096fa7a0..0000000000 --- a/ghost/admin/app/components/gh-publishmenu-draft.hbs +++ /dev/null @@ -1,94 +0,0 @@ -- {{or this.newsletter.senderName this.settings.title}} <{{full-email-address (or this.newsletter.senderEmail "noreply")}}> -
-To: Jamie Larson <jamie@example.com>
-