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() {
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() {