From 299a557cca33d7930bda4b9e730528da1700e41a Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 25 Aug 2021 14:14:57 +0400 Subject: [PATCH] Updated component syntax refs https://github.com/TryGhost/Team/issues/947 - There is no need to use proxy objects in the newest versions of Ember. It's an old patterns that should not be perpetuated --- ghost/admin/app/components/gh-publishmenu-draft.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/gh-publishmenu-draft.js b/ghost/admin/app/components/gh-publishmenu-draft.js index d275755926..02579f80fa 100644 --- a/ghost/admin/app/components/gh-publishmenu-draft.js +++ b/ghost/admin/app/components/gh-publishmenu-draft.js @@ -25,15 +25,15 @@ export default class GhPublishMenuDraftComponent extends Component { } get nextActionName() { - return this.args.post.get('emailOnly') ? 'send' : 'publish'; + return this.args.post.emailOnly ? 'send' : 'publish'; } get showEmailSection() { - return this.args.canSendEmail && this.args.post.get('emailRecipientFilter') !== 'none'; + return this.args.canSendEmail && this.args.post.emailRecipientFilter !== 'none'; } get showEmailOnlyInput() { - return this.feature.get('emailOnlyPosts') && this.args.post.get('isPost'); + return this.feature.emailOnlyPosts && this.args.post.isPost; } constructor() {