0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

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
This commit is contained in:
Naz 2021-08-25 14:14:57 +04:00 committed by naz
parent eef3ee8942
commit 299a557cca

View file

@ -25,15 +25,15 @@ export default class GhPublishMenuDraftComponent extends Component {
} }
get nextActionName() { get nextActionName() {
return this.args.post.get('emailOnly') ? 'send' : 'publish'; return this.args.post.emailOnly ? 'send' : 'publish';
} }
get showEmailSection() { get showEmailSection() {
return this.args.canSendEmail && this.args.post.get('emailRecipientFilter') !== 'none'; return this.args.canSendEmail && this.args.post.emailRecipientFilter !== 'none';
} }
get showEmailOnlyInput() { get showEmailOnlyInput() {
return this.feature.get('emailOnlyPosts') && this.args.post.get('isPost'); return this.feature.emailOnlyPosts && this.args.post.isPost;
} }
constructor() { constructor() {