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:
@ -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'),
|
||||
|
Reference in New Issue
Block a user