mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: show search filter when invites are greater than ten
This commit is contained in:
parent
6907739a0b
commit
46f734bb83
@ -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 New Issue
Block a user