From 109d7cc52d37b6213e188b45b1fbc8a078999ca8 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 16 May 2014 12:06:51 +1000 Subject: [PATCH] move into property so does not evaluate too early. --- app/assets/javascripts/discourse/controllers/site-map.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/site-map.js.es6 b/app/assets/javascripts/discourse/controllers/site-map.js.es6 index cf80db69c..e654a3af7 100644 --- a/app/assets/javascripts/discourse/controllers/site-map.js.es6 +++ b/app/assets/javascripts/discourse/controllers/site-map.js.es6 @@ -1,7 +1,7 @@ export default Ember.ArrayController.extend(Discourse.HasCurrentUser, { itemController: "site-map-category", - showBadgesLink: Discourse.SiteSettings.enable_badges, + showBadgesLink: function(){return Discourse.SiteSettings.enable_badges;}.property(), showAdminLinks: Em.computed.alias('currentUser.staff'), flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),