Please provide the code changes or file diffs you would like me to summarize.
This commit is contained in:
@@ -110,12 +110,12 @@ export default function TransferCenterModal({
|
||||
const unsubscribe = subscribeUploadProgress(taskId, (task) => {
|
||||
updateTaskGroup(groupId, (current) => {
|
||||
const nextItems = current.items.map((item) =>
|
||||
item.taskId === task.taskId
|
||||
item.taskId === task.taskId
|
||||
? {
|
||||
...item,
|
||||
progress: task.progress,
|
||||
status: task.status,
|
||||
message: task.error || (task.status === 'success' ? '上传完成' : task.status === 'error' ? '上传失败' : task.status === 'cancelled' ? '已取消' : '正在传输...'),
|
||||
message: task.error || (task.status === 'success' ? '上传完成' : task.status === 'error' ? '上传失败' : '正在传输...'),
|
||||
}
|
||||
: item,
|
||||
)
|
||||
@@ -231,9 +231,9 @@ export default function TransferCenterModal({
|
||||
<div className="rounded-xl border border-slate-700 bg-black px-4 py-3 text-sm text-slate-400">按浏览器任务并行执行</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex-1 space-y-2">
|
||||
<span className="text-sm text-slate-300">3. 目标服务器</span>
|
||||
<div className="rounded-2xl border border-slate-700 bg-black p-2">
|
||||
<div className="flex min-h-0 flex-1 flex-col space-y-2">
|
||||
<span className="shrink-0 text-sm text-slate-300">3. 目标服务器</span>
|
||||
<div className="min-h-0 flex-1 overflow-y-auto rounded-2xl border border-slate-700 bg-black p-2">
|
||||
{connections.map((server) => {
|
||||
const st = connectionStatuses[server.id]
|
||||
const isOnline = st === 'online'
|
||||
|
||||
Reference in New Issue
Block a user