2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

Homepage hide inactive (#4700)

* Add user setting for including "inactive" parts in results displayed on homepage

* Adds user setting to hide inactive parts on the homepage

Closes https://github.com/inventree/InvenTree/issues/4688
This commit is contained in:
Oliver
2023-04-26 15:45:14 +10:00
committed by GitHub
parent f382d7ef21
commit 36d17c082b
3 changed files with 34 additions and 0 deletions

View File

@ -1741,6 +1741,14 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
]
SETTINGS = {
'HOMEPAGE_HIDE_INACTIVE': {
'name': _('Hide inactive parts'),
'description': _('Hide inactive parts in results displayed on the homepage'),
'default': True,
'validator': bool,
},
'HOMEPAGE_PART_STARRED': {
'name': _('Show subscribed parts'),
'description': _('Show subscribed parts on the homepage'),