2
0
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:
Oliver
2025-06-20 17:35:03 +10:00
committed by GitHub
parent b4f3fd46f9
commit 6229d2e8c8
2 changed files with 28 additions and 22 deletions

View File

@ -133,6 +133,7 @@ function EmailSection() {
return ( return (
<SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'> <SimpleGrid cols={{ xs: 1, md: 2 }} spacing='sm'>
{emailAvailable ? ( {emailAvailable ? (
<Stack gap='xs'>
<Alert <Alert
icon={<IconAlertCircle size='1rem' />} icon={<IconAlertCircle size='1rem' />}
title={t`Not Configured`} title={t`Not Configured`}
@ -140,6 +141,7 @@ function EmailSection() {
> >
<Trans>Currently no email addresses are registered.</Trans> <Trans>Currently no email addresses are registered.</Trans>
</Alert> </Alert>
</Stack>
) : ( ) : (
<Radio.Group <Radio.Group
value={selectedEmail} value={selectedEmail}
@ -289,6 +291,7 @@ function ProviderSection({
<Grid> <Grid>
<Grid.Col span={6}> <Grid.Col span={6}>
{data.length == 0 ? ( {data.length == 0 ? (
<Stack gap='xs'>
<Alert <Alert
icon={<IconAlertCircle size='1rem' />} icon={<IconAlertCircle size='1rem' />}
title={t`Not Configured`} title={t`Not Configured`}
@ -296,6 +299,7 @@ function ProviderSection({
> >
<Trans>There are no providers connected to this account.</Trans> <Trans>There are no providers connected to this account.</Trans>
</Alert> </Alert>
</Stack>
) : ( ) : (
<Stack> <Stack>
<Radio.Group <Radio.Group
@ -426,6 +430,7 @@ 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 ? (
<Stack gap='xs'>
<Alert <Alert
title={t`Not Configured`} title={t`Not Configured`}
icon={<IconAlertCircle size='1rem' />} icon={<IconAlertCircle size='1rem' />}
@ -433,6 +438,7 @@ function MfaSection() {
> >
<Trans>No multi-factor tokens configured for this account</Trans> <Trans>No multi-factor tokens configured for this account</Trans>
</Alert> </Alert>
</Stack>
) : ( ) : (
<Table stickyHeader striped highlightOnHover withTableBorder> <Table stickyHeader striped highlightOnHover withTableBorder>
<Table.Thead> <Table.Thead>

View File

@ -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: {