mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 17:29:25 +00:00
FIX: When uncategorized badge is not suppressed, the header formatting
was a bit messed up
This commit is contained in:
parent
0041081c6e
commit
d734bdabb6
@ -12,7 +12,9 @@ export default DiscourseController.extend({
|
|||||||
|
|
||||||
hasCategory: function() {
|
hasCategory: function() {
|
||||||
var cat = this.get('topic.category');
|
var cat = this.get('topic.category');
|
||||||
return cat && !cat.get('isUncategorizedCategory');
|
return cat &&
|
||||||
|
!cat.get('isUncategorizedCategory') ||
|
||||||
|
!this.siteSettings.suppress_uncategorized_badge;
|
||||||
}.property('topic.category'),
|
}.property('topic.category'),
|
||||||
|
|
||||||
showPrivateMessageGlyph: function() {
|
showPrivateMessageGlyph: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user