mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-26 17:48:54 +00:00
[bug] fix missing staff setting (#13386)
- NOTIFICATION_ERROR_REPORT setting was hidden
This commit is contained in:
1 parent
4c06cfb237
commit
8e83a8a9a1
2 files changed
+13
-7
No files matched your search
@@ -283,7 +283,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>
|
||||
)
|
||||
},
|
||||
{
|
||||
@@ -135,7 +141,7 @@ export default function UserSettings() {
|
||||
)
|
||||
}
|
||||
];
|
||||
}, []);
|
||||
}, [user]);
|
||||
|
||||
if (!isLoggedIn()) {
|
||||
return <Skeleton />;
|
||||
|
||||
Reference in new issue
Block a user