mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Rename humburger_menu_categories_count site setting to header_dropdown_category_count
This commit is contained in:
@ -138,8 +138,8 @@ widgetTest("top categories - anonymous", {
|
||||
anonymous: true,
|
||||
|
||||
beforeEach() {
|
||||
this.siteSettings.hamburger_menu_categories_count = 8;
|
||||
maxCategoriesToDisplay = this.siteSettings.hamburger_menu_categories_count;
|
||||
this.siteSettings.header_dropdown_category_count = 8;
|
||||
maxCategoriesToDisplay = this.siteSettings.header_dropdown_category_count;
|
||||
categoriesByCount = this.site.get("categoriesByCount");
|
||||
},
|
||||
|
||||
@ -162,8 +162,8 @@ widgetTest("top categories", {
|
||||
template: '{{mount-widget widget="hamburger-menu"}}',
|
||||
|
||||
beforeEach() {
|
||||
this.siteSettings.hamburger_menu_categories_count = 8;
|
||||
maxCategoriesToDisplay = this.siteSettings.hamburger_menu_categories_count;
|
||||
this.siteSettings.header_dropdown_category_count = 8;
|
||||
maxCategoriesToDisplay = this.siteSettings.header_dropdown_category_count;
|
||||
categoriesByCount = this.site.get("categoriesByCount").slice();
|
||||
categoriesByCount.every(c => {
|
||||
if (!topCategoryIds.includes(c.id)) {
|
||||
|
Reference in New Issue
Block a user