mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Fix display of error notifications (#6232)
This commit is contained in:
parent
ef679b1663
commit
544c7d389c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user