mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-02 10:18:42 +00:00
Merge commit 'ec845c61cda2d9fd458906aef7e2871f7a09a188' into block-notes
This commit is contained in:
@@ -130,9 +130,13 @@ export default function NewsWidget() {
|
||||
<NewsItem key={item.pk} item={item} onMarkRead={markRead} />
|
||||
))
|
||||
) : (
|
||||
<Alert color='green' title={t`No News`}>
|
||||
<Text>{t`There are no unread news items`}</Text>
|
||||
</Alert>
|
||||
<Table.Tr>
|
||||
<Table.Td colSpan={3}>
|
||||
<Alert color='green' title={t`No News`}>
|
||||
<Text>{t`There are no unread news items`}</Text>
|
||||
</Alert>
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
)}
|
||||
</Table.Tbody>
|
||||
</Table>
|
||||
|
||||
@@ -131,7 +131,9 @@ export async function doBasicLogin(
|
||||
default:
|
||||
notifications.show({
|
||||
title: `${t`Login failed`} (${err.response.status})`,
|
||||
message: t`Check your input and try again.`,
|
||||
message:
|
||||
err.response?.data?.detail ??
|
||||
t`Check your input and try again.`,
|
||||
id: 'auth-login-error',
|
||||
color: 'red'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user