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:
parent
eef3ee8942
commit
299a557cca
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue