From ea2f892f4b60d897f96af41cbdc767c69d8c4ec2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 5 Jan 2015 17:09:17 +1100 Subject: [PATCH] FEATURE: show likes column if sorting by likes --- app/assets/javascripts/discourse/components/topic-list.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/components/topic-list.js.es6 b/app/assets/javascripts/discourse/components/topic-list.js.es6 index 62a8880063..2ea6befbbe 100644 --- a/app/assets/javascripts/discourse/components/topic-list.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-list.js.es6 @@ -11,6 +11,10 @@ export default Ember.Component.extend({ return !!this.get('changeSort'); }.property(), + showLikes: function(){ + return this.get('order') === "likes"; + }.property(), + click: function(e){ var self = this; var on = function(sel, callback){