mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
Merge pull request #2476 from techAPJ/suppress-invite-search
FIX: show search filter only when invites are greater than or equal to ten
This commit is contained in:
commit
0289e60a25
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ export default Ember.ObjectController.extend({
|
||||||
|
|
||||||
@property showSearch
|
@property showSearch
|
||||||
**/
|
**/
|
||||||
showSearch: function() {
|
showSearch: Em.computed.gte('invites.length', 10),
|
||||||
return !(Em.isNone(this.get('searchTerm')) && this.get('invites.length') === 0);
|
|
||||||
}.property('searchTerm', 'invites.length'),
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Were the results limited by our `maxInvites`
|
Were the results limited by our `maxInvites`
|
||||||
|
|
Loading…
Reference in a new issue