mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display more user details (read only)
This commit is contained in:
parent
a8ff676f7e
commit
19f25f8c8f
@ -3,6 +3,7 @@ import { ActionIcon, Group, Stack, Table, Title, Tooltip } from '@mantine/core';
|
||||
import { IconDots, IconEdit, IconKey, IconUser } from '@tabler/icons-react';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { YesNoButton } from '../../../../components/buttons/YesNoButton';
|
||||
import { ApiFormFieldSet } from '../../../../components/forms/fields/ApiFormField';
|
||||
import { ActionDropdown } from '../../../../components/items/ActionDropdown';
|
||||
import { ApiEndpoints } from '../../../../enums/ApiEndpoints';
|
||||
@ -77,6 +78,22 @@ export function AccountDetailPanel() {
|
||||
</Table.Td>
|
||||
<Table.Td>{user?.last_name}</Table.Td>
|
||||
</Table.Tr>
|
||||
<Table.Tr>
|
||||
<Table.Td>
|
||||
<Trans>Staff Access</Trans>
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<YesNoButton value={user?.is_staff} />
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
<Table.Tr>
|
||||
<Table.Td>
|
||||
<Trans>Superuser</Trans>
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<YesNoButton value={user?.is_superuser} />
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
</Table>
|
||||
</Stack>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user