diff --git a/src/backend/InvenTree/InvenTree/api.py b/src/backend/InvenTree/InvenTree/api.py index 8f9ae86f66..b09cf538e7 100644 --- a/src/backend/InvenTree/InvenTree/api.py +++ b/src/backend/InvenTree/InvenTree/api.py @@ -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): diff --git a/src/frontend/src/components/modals/ServerInfoModal.tsx b/src/frontend/src/components/modals/ServerInfoModal.tsx index 9633dbab68..6b56405826 100644 --- a/src/frontend/src/components/modals/ServerInfoModal.tsx +++ b/src/frontend/src/components/modals/ServerInfoModal.tsx @@ -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 ( - - Server - @@ -53,8 +49,10 @@ export function ServerInfoModal({ Debug Mode - INVE-W4 - Server is running in debug mode + + INVE-W4 + Server is running in debug mode + )} @@ -104,8 +102,10 @@ export function ServerInfoModal({ Background Worker - INVE-W5 - The Background worker process is not running. + + INVE-W5 + The background worker process is not running + )} @@ -115,8 +115,10 @@ export function ServerInfoModal({ Email Settings - INVE-W7 - Email settings not configured. + + INVE-W7 + Email settings not configured. + )}