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:
Robin Ward 2014-06-26 15:02:24 -04:00
commit 0289e60a25

View file

@ -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`