From fb5f3a7cf11505d573fe21150060ba959625b744 Mon Sep 17 00:00:00 2001 From: haitaoo Date: Wed, 28 Jun 2023 18:41:24 +0800 Subject: [PATCH] fix(Dashboard): Some minor problem adjustments. --- .vscode/settings.json | 3 ++- .../Admin/Dashboard/components/HealthStatus/index.tsx | 2 +- .../Admin/Dashboard/components/SystemInfo/index.tsx | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 93106f18..db563c27 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "eslint.workingDirectories": [ "ui" - ] + ], + "explorer.autoReveal": "focusNoScroll" } diff --git a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx index 4aca368a..2284d6e5 100644 --- a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx +++ b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx @@ -58,7 +58,7 @@ const HealthStatus: FC = ({ data }) => { {t('https')} - {data.https ? t('yes') : t('yes')} + {data.https ? t('yes') : t('no')} {t('uploading_files')} diff --git a/ui/src/pages/Admin/Dashboard/components/SystemInfo/index.tsx b/ui/src/pages/Admin/Dashboard/components/SystemInfo/index.tsx index cbc065c7..99eb7db6 100644 --- a/ui/src/pages/Admin/Dashboard/components/SystemInfo/index.tsx +++ b/ui/src/pages/Admin/Dashboard/components/SystemInfo/index.tsx @@ -20,10 +20,12 @@ const SystemInfo: FC = ({ data }) => { {t('storage_used')} {data.occupying_storage_space} - - {t('uptime')} - {formatUptime(data.app_start_time)} - + {data.app_start_time ? ( + + {t('uptime')} + {formatUptime(data.app_start_time)} + + ) : null}