From e53651972d9c48344070b123e6c7c2c40e9054b0 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 8 Jul 2014 23:56:52 +0530 Subject: [PATCH] FIX: don't hide invite search box while filtering --- .../javascripts/discourse/controllers/user-invited.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/user-invited.js.es6 b/app/assets/javascripts/discourse/controllers/user-invited.js.es6 index 839e3ff823e..edab11689fc 100644 --- a/app/assets/javascripts/discourse/controllers/user-invited.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user-invited.js.es6 @@ -58,7 +58,9 @@ export default Ember.ObjectController.extend({ @property showSearch **/ - showSearch: Em.computed.gte('invites.length', 10), + showSearch: function() { + return this.get('invites.length') > 9; + }.property(), /** Were the results limited by our `maxInvites`