mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 02:44:08 +08:00
FIX: Subcategories should show pills
This commit is contained in:
parent
c9cb5a5b79
commit
416e461417
@ -35,7 +35,7 @@ export default Ember.Component.extend({
|
||||
});
|
||||
}.property('firstCategory', 'hideSubcategories'),
|
||||
|
||||
render: function(buffer) {
|
||||
render(buffer) {
|
||||
if (this.get('hidden')) { return; }
|
||||
this._super(buffer);
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ export default NavigationDefaultController.extend({
|
||||
|
||||
@computed("showingSubcategoryList", "category", "noSubcategories")
|
||||
navItems(showingSubcategoryList, category, noSubcategories) {
|
||||
if (showingSubcategoryList) { return []; }
|
||||
return Discourse.NavItem.buildList(category, { noSubcategories });
|
||||
}
|
||||
});
|
||||
|
@ -3,7 +3,6 @@
|
||||
noSubcategories=noSubcategories
|
||||
hideSubcategories=showingSubcategoryList}}
|
||||
|
||||
|
||||
{{navigation-bar navItems=navItems filterMode=filterMode}}
|
||||
|
||||
{{#if currentUser}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user