mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 07:46:23 +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'),
|
}.property('firstCategory', 'hideSubcategories'),
|
||||||
|
|
||||||
render: function(buffer) {
|
render(buffer) {
|
||||||
if (this.get('hidden')) { return; }
|
if (this.get('hidden')) { return; }
|
||||||
this._super(buffer);
|
this._super(buffer);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ export default NavigationDefaultController.extend({
|
|||||||
|
|
||||||
@computed("showingSubcategoryList", "category", "noSubcategories")
|
@computed("showingSubcategoryList", "category", "noSubcategories")
|
||||||
navItems(showingSubcategoryList, category, noSubcategories) {
|
navItems(showingSubcategoryList, category, noSubcategories) {
|
||||||
if (showingSubcategoryList) { return []; }
|
|
||||||
return Discourse.NavItem.buildList(category, { noSubcategories });
|
return Discourse.NavItem.buildList(category, { noSubcategories });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
noSubcategories=noSubcategories
|
noSubcategories=noSubcategories
|
||||||
hideSubcategories=showingSubcategoryList}}
|
hideSubcategories=showingSubcategoryList}}
|
||||||
|
|
||||||
|
|
||||||
{{navigation-bar navItems=navItems filterMode=filterMode}}
|
{{navigation-bar navItems=navItems filterMode=filterMode}}
|
||||||
|
|
||||||
{{#if currentUser}}
|
{{#if currentUser}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user