mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-27 01:58:44 +00:00
- NOTIFICATION_ERROR_REPORT setting was hidden
(cherry picked from commit 8e83a8a9a1)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
1 parent
dc14363434
commit
890b69fd25
2 files changed
+13
-7
No files matched your search
@@ -299,7 +299,7 @@ USER_SETTINGS: dict[str, InvenTreeSettingsKeyType] = {
|
||||
},
|
||||
'NOTIFICATION_ERROR_REPORT': {
|
||||
'name': _('Receive error reports'),
|
||||
'description': _('Receive notifications for system errors'),
|
||||
'description': _('Receive notifications for system errors (staff users only)'),
|
||||
'default': True,
|
||||
'validator': bool,
|
||||
},
|
||||
|
||||
@@ -113,11 +113,17 @@ export default function UserSettings() {
|
||||
label: t`Notifications`,
|
||||
icon: <IconBellCog />,
|
||||
content: (
|
||||
<PluginSettingsGroup
|
||||
mixin='notification'
|
||||
global={false}
|
||||
message={t`The settings below are specific to each available notification method`}
|
||||
/>
|
||||
<Stack gap='xs'>
|
||||
{/* Error reports are only sent to staff users */}
|
||||
{user?.is_staff && (
|
||||
<UserSettingList keys={['NOTIFICATION_ERROR_REPORT']} />
|
||||
)}
|
||||
<PluginSettingsGroup
|
||||
mixin='notification'
|
||||
global={false}
|
||||
message={t`The settings below are specific to each available notification method`}
|
||||
/>
|
||||
</Stack>
|
||||
)
|
||||
},
|
||||
{
|
||||
@@ -139,7 +145,7 @@ export default function UserSettings() {
|
||||
)
|
||||
}
|
||||
];
|
||||
}, []);
|
||||
}, [user]);
|
||||
|
||||
if (!isLoggedIn()) {
|
||||
return <Skeleton />;
|
||||
|
||||
Reference in new issue
Block a user