further optimize computed property
This commit is contained in:
parent
e7e823129e
commit
d0024f738b
|
@ -52,9 +52,7 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
||||||
|
|
||||||
@property isPrivateTopic
|
@property isPrivateTopic
|
||||||
**/
|
**/
|
||||||
isPrivateTopic: function() {
|
isPrivateTopic: Em.computed.and('invitingToTopic', 'model.category.read_restricted'),
|
||||||
return this.get('invitingToTopic') && this.get('model.category.read_restricted');
|
|
||||||
}.property('model'),
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Instructional text for the modal.
|
Instructional text for the modal.
|
||||||
|
|
Loading…
Reference in New Issue