mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 19:33:11 +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
@ -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…
x
Reference in New Issue
Block a user