fix(Dashboard): Some minor problem adjustments.

This commit is contained in:
haitaoo 2023-06-28 18:41:24 +08:00
parent 18a6a20590
commit fb5f3a7cf1
3 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,6 @@
{
"eslint.workingDirectories": [
"ui"
]
],
"explorer.autoReveal": "focusNoScroll"
}

View File

@ -58,7 +58,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {
</Col>
<Col xs={6} className="mb-1">
<span className="text-secondary me-1">{t('https')}</span>
<strong>{data.https ? t('yes') : t('yes')}</strong>
<strong>{data.https ? t('yes') : t('no')}</strong>
</Col>
<Col xs={6} className="mb-1">
<span className="text-secondary me-1">{t('uploading_files')}</span>

View File

@ -20,10 +20,12 @@ const SystemInfo: FC<IProps> = ({ data }) => {
<span className="text-secondary me-1">{t('storage_used')}</span>
<strong>{data.occupying_storage_space}</strong>
</Col>
<Col xs={6}>
<span className="text-secondary me-1">{t('uptime')}</span>
<strong>{formatUptime(data.app_start_time)}</strong>
</Col>
{data.app_start_time ? (
<Col xs={6}>
<span className="text-secondary me-1">{t('uptime')}</span>
<strong>{formatUptime(data.app_start_time)}</strong>
</Col>
) : null}
</Row>
</Card.Body>
</Card>