fix(console): show overview loading failures

Failed overview requests must not look like an empty dashboard or
a successful refresh. Show the reason while retaining prior data.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:48 +08:00
1 parent 4fae01453c
commit a31f7cbe43
3 files changed
+22 -2

No files matched your search

+5
View File
@@ -25,6 +25,9 @@ const en: Dict = {
"overview.recent": "Recent deliveries",
"overview.viewAll": "View all",
"overview.refreshed": "Refreshed",
"overview.refreshFailed": "Refresh failed",
"overview.loadFailed":
"Some data could not be loaded; what is shown may be incomplete or out of date: {error}",
"overview.thRoute": "Route",
"overview.thGroup": "Group",
"overview.thEvents": "Events",
@@ -475,6 +478,8 @@ const zh: Dict = {
"overview.recent": "最近投递",
"overview.viewAll": "查看全部",
"overview.refreshed": "已刷新",
"overview.refreshFailed": "刷新失败",
"overview.loadFailed": "部分数据加载失败,当前显示的内容可能不完整或已过期:{error}",
"overview.thRoute": "路由",
"overview.thGroup": "分组",
"overview.thEvents": "事件",