FIX: Load order issue / header category badge when not surpressed

This commit is contained in:
Robin Ward 2014-11-25 18:13:38 -05:00
parent d171d6db19
commit 220f2424b5
2 changed files with 1 additions and 3 deletions

View file

@ -12,9 +12,7 @@ export default DiscourseController.extend({
hasCategory: function() {
var cat = this.get('topic.category');
return cat &&
!cat.get('isUncategorizedCategory') ||
!this.siteSettings.suppress_uncategorized_badge;
return cat && (!cat.get('isUncategorizedCategory') || !this.siteSettings.suppress_uncategorized_badge);
}.property('topic.category'),
showPrivateMessageGlyph: function() {