mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
[UI] About tweak (#9874)
* Cleanup server info modal * Sort package info
This commit is contained in:
@ -73,7 +73,7 @@ def read_license_file(path: Path) -> list:
|
||||
names.add(name)
|
||||
output.append({key.lower(): value for key, value in entry.items()})
|
||||
|
||||
return output
|
||||
return sorted(output, key=lambda x: x.get('name', '').lower())
|
||||
|
||||
|
||||
class LicenseViewSerializer(serializers.Serializer):
|
||||
|
@ -5,7 +5,6 @@ import type { ContextModalProps } from '@mantine/modals';
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
import { useServerApiState } from '../../states/ApiState';
|
||||
import { OnlyStaff } from '../items/OnlyStaff';
|
||||
import { StylishText } from '../items/StylishText';
|
||||
|
||||
export function ServerInfoModal({
|
||||
context,
|
||||
@ -16,9 +15,6 @@ export function ServerInfoModal({
|
||||
return (
|
||||
<Stack>
|
||||
<Divider />
|
||||
<StylishText size='lg'>
|
||||
<Trans>Server</Trans>
|
||||
</StylishText>
|
||||
<Table striped>
|
||||
<Table.Tbody>
|
||||
<Table.Tr>
|
||||
@ -53,8 +49,10 @@ export function ServerInfoModal({
|
||||
<Trans>Debug Mode</Trans>
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<Group justify='space-between'>
|
||||
<Badge color='red'>INVE-W4</Badge>
|
||||
<Trans>Server is running in debug mode</Trans>
|
||||
</Group>
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
)}
|
||||
@ -104,8 +102,10 @@ export function ServerInfoModal({
|
||||
<Trans>Background Worker</Trans>
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<Group justify='space-between'>
|
||||
<Badge color='red'>INVE-W5</Badge>
|
||||
<Trans>The Background worker process is not running.</Trans>
|
||||
<Trans>The background worker process is not running</Trans>
|
||||
</Group>
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
)}
|
||||
@ -115,8 +115,10 @@ export function ServerInfoModal({
|
||||
<Trans>Email Settings</Trans>
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<Group justify='space-between'>
|
||||
<Badge color='red'>INVE-W7</Badge>
|
||||
<Trans>Email settings not configured.</Trans>
|
||||
</Group>
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user