move into property so does not evaluate too early.

This commit is contained in:
Sam 2014-05-16 12:06:51 +10:00
parent d897eada61
commit 109d7cc52d
1 changed files with 1 additions and 1 deletions

View File

@ -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"),