Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dashboard/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@
"reviewNeedSession": "Pick a conversation to see the review trail.",
"tasksEmpty": "No background tasks yet",
"tasksEmptyHint": "Scheduled jobs and running work will appear here.",
"tasksLoadFailed": "Failed to load background tasks",
"tasksOpenPage": "Manage scheduled tasks",
"taskOn": "On",
"taskOff": "Off",
Expand Down
1 change: 1 addition & 0 deletions dashboard/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@
"reviewNeedSession": "先选一段对话,才能查看审查记录。",
"tasksEmpty": "当前没有后台任务",
"tasksEmptyHint": "定时任务和正在运行的工作会显示在这里。",
"tasksLoadFailed": "加载任务失败",
"tasksOpenPage": "管理定时任务",
"taskOn": "已启用",
"taskOff": "已停用",
Expand Down
9 changes: 8 additions & 1 deletion dashboard/src/pages/Chat/components/ChatDockTasksContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ export default function ChatDockTasksContent({
if (!cancelled) setJobs(rows);
})
.catch((err: unknown) => {
if (!cancelled) setError(apiErrorMessage(err, t));
if (!cancelled)
setError(
apiErrorMessage(
err,
t("chat.rightRail.tasksLoadFailed", "加载任务失败"),
t,
),
);
})
.finally(() => {
if (!cancelled) setLoading(false);
Expand Down
Loading