Skip to content

Commit

Permalink
fix(Dashboard): Some minor problem adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
haitaoo committed Jun 28, 2023
1 parent 18a6a20 commit fb5f3a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"eslint.workingDirectories": [
"ui"
]
],
"explorer.autoReveal": "focusNoScroll"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 6 additions & 4 deletions ui/src/pages/Admin/Dashboard/components/SystemInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit fb5f3a7

Please sign in to comment.