From 832efb406907dcd439255f43481c9a17d580a917 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sat, 2 May 2026 17:38:40 +0800 Subject: [PATCH] fix: hide normal storage section status badge --- .../StorageAnalysisDialog.tsx | 15 +++++++-------- web/src/i18n/locales/en-US.ts | 1 - web/src/i18n/locales/es-ES.ts | 1 - web/src/i18n/locales/ja-JP.ts | 1 - web/src/i18n/locales/ru-RU.ts | 1 - web/src/i18n/locales/th-TH.ts | 1 - web/src/i18n/locales/vi-VN.ts | 1 - web/src/i18n/locales/zh-Hans.ts | 1 - web/src/i18n/locales/zh-Hant.ts | 1 - 9 files changed, 7 insertions(+), 16 deletions(-) diff --git a/web/src/app/home/components/storage-analysis-dialog/StorageAnalysisDialog.tsx b/web/src/app/home/components/storage-analysis-dialog/StorageAnalysisDialog.tsx index d7fe1fa6..210b93de 100644 --- a/web/src/app/home/components/storage-analysis-dialog/StorageAnalysisDialog.tsx +++ b/web/src/app/home/components/storage-analysis-dialog/StorageAnalysisDialog.tsx @@ -255,14 +255,13 @@ export default function StorageAnalysisDialog({ {section.path || '-'} - - {section.exists - ? t('storageAnalysis.exists') - : t('storageAnalysis.missing')} - + {section.exists ? ( + + ) : ( + + {t('storageAnalysis.missing')} + + )}
{formatBytes(section.size_bytes)}
diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts index d41618b0..693d09a8 100644 --- a/web/src/i18n/locales/en-US.ts +++ b/web/src/i18n/locales/en-US.ts @@ -1245,7 +1245,6 @@ const enUS = { logRetention: 'Log retention', databaseType: 'Database type', days: 'days', - exists: 'Exists', missing: 'Missing', expiredUploads: 'Expired uploads', expiredLogs: 'Expired logs', diff --git a/web/src/i18n/locales/es-ES.ts b/web/src/i18n/locales/es-ES.ts index cf67c7eb..44e01c59 100644 --- a/web/src/i18n/locales/es-ES.ts +++ b/web/src/i18n/locales/es-ES.ts @@ -1280,7 +1280,6 @@ const esES = { logRetention: 'Retención de registros', databaseType: 'Tipo de base de datos', days: 'días', - exists: 'Existe', missing: 'Falta', expiredUploads: 'Subidas caducadas', expiredLogs: 'Registros caducados', diff --git a/web/src/i18n/locales/ja-JP.ts b/web/src/i18n/locales/ja-JP.ts index 69953f7b..e3811f48 100644 --- a/web/src/i18n/locales/ja-JP.ts +++ b/web/src/i18n/locales/ja-JP.ts @@ -1250,7 +1250,6 @@ logRetention: 'ログ保持期間', databaseType: 'データベース種別', days: '日', - exists: '存在', missing: 'なし', expiredUploads: '期限切れアップロード', expiredLogs: '期限切れログ', diff --git a/web/src/i18n/locales/ru-RU.ts b/web/src/i18n/locales/ru-RU.ts index edf5857d..d390f666 100644 --- a/web/src/i18n/locales/ru-RU.ts +++ b/web/src/i18n/locales/ru-RU.ts @@ -1254,7 +1254,6 @@ const ruRU = { logRetention: 'Хранение журналов', databaseType: 'Тип базы данных', days: 'дн.', - exists: 'Есть', missing: 'Нет', expiredUploads: 'Просроченные загрузки', expiredLogs: 'Просроченные журналы', diff --git a/web/src/i18n/locales/th-TH.ts b/web/src/i18n/locales/th-TH.ts index fecd58ad..fc938888 100644 --- a/web/src/i18n/locales/th-TH.ts +++ b/web/src/i18n/locales/th-TH.ts @@ -1225,7 +1225,6 @@ const thTH = { logRetention: 'ระยะเวลาเก็บบันทึก', databaseType: 'ชนิดฐานข้อมูล', days: 'วัน', - exists: 'มีอยู่', missing: 'ไม่มี', expiredUploads: 'ไฟล์อัปโหลดที่หมดอายุ', expiredLogs: 'บันทึกที่หมดอายุ', diff --git a/web/src/i18n/locales/vi-VN.ts b/web/src/i18n/locales/vi-VN.ts index cc0df12e..4ab66668 100644 --- a/web/src/i18n/locales/vi-VN.ts +++ b/web/src/i18n/locales/vi-VN.ts @@ -1247,7 +1247,6 @@ const viVN = { logRetention: 'Thời gian giữ nhật ký', databaseType: 'Loại cơ sở dữ liệu', days: 'ngày', - exists: 'Tồn tại', missing: 'Thiếu', expiredUploads: 'Tệp tải lên hết hạn', expiredLogs: 'Nhật ký hết hạn', diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts index 2cebb719..5e676688 100644 --- a/web/src/i18n/locales/zh-Hans.ts +++ b/web/src/i18n/locales/zh-Hans.ts @@ -1191,7 +1191,6 @@ const zhHans = { logRetention: '日志保留', databaseType: '数据库类型', days: '天', - exists: '存在', missing: '不存在', expiredUploads: '过期上传文件', expiredLogs: '过期日志', diff --git a/web/src/i18n/locales/zh-Hant.ts b/web/src/i18n/locales/zh-Hant.ts index de8496e7..f7f2ded3 100644 --- a/web/src/i18n/locales/zh-Hant.ts +++ b/web/src/i18n/locales/zh-Hant.ts @@ -1191,7 +1191,6 @@ const zhHant = { logRetention: '日誌保留', databaseType: '資料庫類型', days: '天', - exists: '存在', missing: '不存在', expiredUploads: '過期上傳檔案', expiredLogs: '過期日誌',