mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
Don't show "uncategorized" if allow_uncategorized_topics is false.
This commit is contained in:
parent
1145e4bfd9
commit
03e152ee21
@ -12,6 +12,10 @@ Discourse.BreadCrumbsComponent = Ember.Component.extend({
|
|||||||
parentCategory: Em.computed.alias('category.parentCategory'),
|
parentCategory: Em.computed.alias('category.parentCategory'),
|
||||||
|
|
||||||
parentCategories: Em.computed.filter('categories', function(c) {
|
parentCategories: Em.computed.filter('categories', function(c) {
|
||||||
|
if (c.id === Discourse.Site.currentProp("uncategorized_category_id") && !Discourse.SiteSettings.allow_uncategorized_topics) {
|
||||||
|
// Don't show "uncategorized" if allow_uncategorized_topics setting is false.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return !c.get('parentCategory');
|
return !c.get('parentCategory');
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user