-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support hide categories and posts from the list #6116
Conversation
Hi @ruibaby ,帮忙在分类设置 UI 上增加一个为从列表上隐藏的选项 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6116 +/- ##
============================================
+ Coverage 54.59% 54.98% +0.38%
+ Complexity 3507 3495 -12
============================================
Files 643 637 -6
Lines 21713 21469 -244
Branches 1516 1503 -13
============================================
- Hits 11855 11805 -50
+ Misses 9247 9056 -191
+ Partials 611 608 -3 ☔ View full report in Codecov by Sentry. |
@ruibaby 需要限制一下只让第一层级可以勾选 hidden,建议除了第一层级外不渲染此选项 |
为分类设置隐藏之后,发现其中的文章还是会在首页查询出来。 |
已修改。 |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang, LIlGG The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
/unhold |
What type of PR is this?
/kind feature
/area core
/milestone 2.17.x
What this PR does / why we need it:
允许为分类设置从列表中隐藏则分类及子分类以及关联的文章将不会出现在列表上但可以通过链接访问
Which issue(s) this PR fixes:
Fixes #6093
Does this PR introduce a user-facing change?