mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: hamburger shouldn't show subcategories if show_subcategory_list is enabled on the parent
This commit is contained in:
parent
5a48cea395
commit
cfedbad0e9
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export default createWidget('hamburger-menu', {
|
|||
const isStaff = Discourse.User.currentProp('staff');
|
||||
|
||||
const categories = Discourse.Category.list().reject((c) => {
|
||||
if (c.get('show_subcategory_list') && c.get('parent_category_id')) { return true; }
|
||||
if (c.get('parentCategory.show_subcategory_list')) { return true; }
|
||||
if (hideUncategorized && c.get('isUncategorizedCategory') && !isStaff) { return true; }
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue