Show badges filter in user profiles only when the user has badges.
This commit is contained in:
parent
843023d7c9
commit
5bb3a1a05a
|
@ -19,8 +19,8 @@ Discourse.UserController = Discourse.ObjectController.extend({
|
||||||
}.property('viewingSelf'),
|
}.property('viewingSelf'),
|
||||||
|
|
||||||
showBadges: function() {
|
showBadges: function() {
|
||||||
return Discourse.SiteSettings.enable_badges;
|
return Discourse.SiteSettings.enable_badges && (this.get('content.badge_count') > 0);
|
||||||
}.property(),
|
}.property('content.badge_count'),
|
||||||
|
|
||||||
privateMessageView: function() {
|
privateMessageView: function() {
|
||||||
return (this.get('userActionType') === Discourse.UserAction.TYPES.messages_sent) ||
|
return (this.get('userActionType') === Discourse.UserAction.TYPES.messages_sent) ||
|
||||||
|
|
Loading…
Reference in New Issue