move into property so does not evaluate too early.
This commit is contained in:
parent
d897eada61
commit
109d7cc52d
|
@ -1,7 +1,7 @@
|
||||||
export default Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
export default Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
||||||
itemController: "site-map-category",
|
itemController: "site-map-category",
|
||||||
|
|
||||||
showBadgesLink: Discourse.SiteSettings.enable_badges,
|
showBadgesLink: function(){return Discourse.SiteSettings.enable_badges;}.property(),
|
||||||
showAdminLinks: Em.computed.alias('currentUser.staff'),
|
showAdminLinks: Em.computed.alias('currentUser.staff'),
|
||||||
flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),
|
flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue