mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Logic fix for UI elements (#7657)
- Check for false, as !true includes undefined - Prevents visual flashes due to short term rendering of elements
This commit is contained in:
parent
25c91323c9
commit
12dfaaba9a
@ -91,7 +91,7 @@ export function ServerInfoModal({
|
||||
</OnlyStaff>
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
{server.worker_running != true && (
|
||||
{server?.worker_running == false && (
|
||||
<Table.Tr>
|
||||
<Table.Td>
|
||||
<Trans>Background Worker</Trans>
|
||||
@ -103,7 +103,7 @@ export function ServerInfoModal({
|
||||
</Table.Td>
|
||||
</Table.Tr>
|
||||
)}
|
||||
{server.email_configured != true && (
|
||||
{server?.email_configured == false && (
|
||||
<Table.Tr>
|
||||
<Table.Td>
|
||||
<Trans>Email Settings</Trans>
|
||||
|
@ -49,7 +49,7 @@ export default function TaskManagementPanel() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{!taskInfo.is_running && (
|
||||
{taskInfo?.is_running == false && (
|
||||
<Alert title={t`Background Worker Not Running`} color="red">
|
||||
<Text>{t`The background task manager service is not running. Contact your system administrator.`}</Text>
|
||||
</Alert>
|
||||
|
Loading…
Reference in New Issue
Block a user