From d734bdabb688ea3d1f9ff30ebc36b6a7a1e02772 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 23 Oct 2014 12:07:29 -0400 Subject: [PATCH] FIX: When uncategorized badge is not suppressed, the header formatting was a bit messed up --- app/assets/javascripts/discourse/controllers/header.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/header.js.es6 b/app/assets/javascripts/discourse/controllers/header.js.es6 index 8e2679eed..2b64251f8 100644 --- a/app/assets/javascripts/discourse/controllers/header.js.es6 +++ b/app/assets/javascripts/discourse/controllers/header.js.es6 @@ -12,7 +12,9 @@ export default DiscourseController.extend({ hasCategory: function() { var cat = this.get('topic.category'); - return cat && !cat.get('isUncategorizedCategory'); + return cat && + !cat.get('isUncategorizedCategory') || + !this.siteSettings.suppress_uncategorized_badge; }.property('topic.category'), showPrivateMessageGlyph: function() {