mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:40:40 +08:00
FIX: Load order issue / header category badge when not surpressed
This commit is contained in:
parent
d171d6db19
commit
220f2424b5
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user