mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
Categories refactor (#9233)
* feat: wip categories pagination * feat: add subCategoriesPerPage setting * feat: add load more sub categories button to category page * fix: openapi spec * feat: show sub categories left on category page hide button when no more categories left * breaking: rename categories to allCategories on /search categories contains the search results * fix: spec * refactor: remove cidsPerPage * fix: tests * feat: use component for subcategories * fix: prevent negative subCategoriesLeft
This commit is contained in:
committed by
GitHub
parent
4c12e0aaf8
commit
d1364c3130
@@ -10,7 +10,7 @@ const utils = require('../utils');
|
||||
const intFields = [
|
||||
'cid', 'parentCid', 'disabled', 'isSection', 'order',
|
||||
'topic_count', 'post_count', 'numRecentReplies',
|
||||
'minTags', 'maxTags', 'postQueue',
|
||||
'minTags', 'maxTags', 'postQueue', 'subCategoriesPerPage',
|
||||
];
|
||||
|
||||
module.exports = function (Categories) {
|
||||
|
||||
Reference in New Issue
Block a user