2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix display of error notifications (#6232)

This commit is contained in:
Oliver 2024-01-14 07:52:02 +11:00 committed by GitHub
parent ef679b1663
commit 544c7d389c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,12 +97,18 @@ export function NotificationDrawer({
to={notification?.target?.link} to={notification?.target?.link}
target="_blank" target="_blank"
> >
{notification.target?.name ?? 'target'} {notification.target?.name ??
notification.name ??
t`Notification`}
</Text> </Text>
) : ( ) : (
<Text size="sm">{notification.target?.name ?? 'target'}</Text> <Text size="sm">
{notification.target?.name ??
notification.name ??
t`Notification`}
</Text>
)} )}
<Text size="xs">{notification.age_human ?? 'name'}</Text> <Text size="xs">{notification.age_human ?? ''}</Text>
</Stack> </Stack>
<Space /> <Space />
<ActionIcon <ActionIcon