mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: show search filter when invites are greater than ten
This commit is contained in:
parent
6907739a0b
commit
46f734bb83
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ export default Ember.ObjectController.extend({
|
|||
|
||||
@property showSearch
|
||||
**/
|
||||
showSearch: function() {
|
||||
return !(Em.isNone(this.get('searchTerm')) && this.get('invites.length') === 0);
|
||||
}.property('searchTerm', 'invites.length'),
|
||||
showSearch: Em.computed.gte('invites.length', 10),
|
||||
|
||||
/**
|
||||
Were the results limited by our `maxInvites`
|
||||
|
|
Loading…
Reference in a new issue