mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03: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:
parent
eef3ee8942
commit
299a557cca
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user