mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 19:20:55 +00:00
Small UI improvement to SecurityContext (#9818)
* Small UI improvement to SecurityContext * Fix translated string
This commit is contained in:
@ -133,13 +133,15 @@ function EmailSection() {
|
|||||||
return (
|
return (
|
||||||
<SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'>
|
<SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'>
|
||||||
{emailAvailable ? (
|
{emailAvailable ? (
|
||||||
<Alert
|
<Stack gap='xs'>
|
||||||
icon={<IconAlertCircle size='1rem' />}
|
<Alert
|
||||||
title={t`Not Configured`}
|
icon={<IconAlertCircle size='1rem' />}
|
||||||
color='yellow'
|
title={t`Not Configured`}
|
||||||
>
|
color='yellow'
|
||||||
<Trans>Currently no email addresses are registered.</Trans>
|
>
|
||||||
</Alert>
|
<Trans>Currently no email addresses are registered.</Trans>
|
||||||
|
</Alert>
|
||||||
|
</Stack>
|
||||||
) : (
|
) : (
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
value={selectedEmail}
|
value={selectedEmail}
|
||||||
@ -289,13 +291,15 @@ function ProviderSection({
|
|||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={6}>
|
<Grid.Col span={6}>
|
||||||
{data.length == 0 ? (
|
{data.length == 0 ? (
|
||||||
<Alert
|
<Stack gap='xs'>
|
||||||
icon={<IconAlertCircle size='1rem' />}
|
<Alert
|
||||||
title={t`Not Configured`}
|
icon={<IconAlertCircle size='1rem' />}
|
||||||
color='yellow'
|
title={t`Not Configured`}
|
||||||
>
|
color='yellow'
|
||||||
<Trans>There are no providers connected to this account.</Trans>
|
>
|
||||||
</Alert>
|
<Trans>There are no providers connected to this account.</Trans>
|
||||||
|
</Alert>
|
||||||
|
</Stack>
|
||||||
) : (
|
) : (
|
||||||
<Stack>
|
<Stack>
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
@ -426,13 +430,15 @@ function MfaSection() {
|
|||||||
<ReauthModal />
|
<ReauthModal />
|
||||||
<SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'>
|
<SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'>
|
||||||
{data.length == 0 ? (
|
{data.length == 0 ? (
|
||||||
<Alert
|
<Stack gap='xs'>
|
||||||
title={t`Not Configured`}
|
<Alert
|
||||||
icon={<IconAlertCircle size='1rem' />}
|
title={t`Not Configured`}
|
||||||
color='yellow'
|
icon={<IconAlertCircle size='1rem' />}
|
||||||
>
|
color='yellow'
|
||||||
<Trans>No multi-factor tokens configured for this account</Trans>
|
>
|
||||||
</Alert>
|
<Trans>No multi-factor tokens configured for this account</Trans>
|
||||||
|
</Alert>
|
||||||
|
</Stack>
|
||||||
) : (
|
) : (
|
||||||
<Table stickyHeader striped highlightOnHover withTableBorder>
|
<Table stickyHeader striped highlightOnHover withTableBorder>
|
||||||
<Table.Thead>
|
<Table.Thead>
|
||||||
|
@ -278,7 +278,7 @@ export default function PluginListTable() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const installPluginModal = useCreateApiFormModal({
|
const installPluginModal = useCreateApiFormModal({
|
||||||
title: t`Install plugin`,
|
title: t`Install Plugin`,
|
||||||
url: ApiEndpoints.plugin_install,
|
url: ApiEndpoints.plugin_install,
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
fields: {
|
fields: {
|
||||||
|
Reference in New Issue
Block a user