Polish web device conflict copy
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type {
|
||||
ThreadConversationExecutionConflict,
|
||||
ThreadConversationExecutionConflictAction,
|
||||
ThreadConversationExecutionConflictState,
|
||||
} from "@/lib/thread-execution-conflict";
|
||||
|
||||
export function describeThreadConversationExecutionConflict(
|
||||
@@ -46,3 +47,32 @@ export function summarizeThreadConversationExecutionDecisionResult(
|
||||
return "已保持禁止,这次消息没有发出。";
|
||||
}
|
||||
}
|
||||
|
||||
export function labelForProjectConflictAllowPolicy(
|
||||
decision?: ThreadConversationExecutionConflictAction | null,
|
||||
) {
|
||||
switch (decision) {
|
||||
case "allow_once":
|
||||
return "允许本次";
|
||||
case "allow_always":
|
||||
return "永久放行";
|
||||
case "forbid":
|
||||
return "禁止";
|
||||
default:
|
||||
return "暂无";
|
||||
}
|
||||
}
|
||||
|
||||
export function labelForProjectConflictState(
|
||||
conflictState?: ThreadConversationExecutionConflictState | "none" | null,
|
||||
) {
|
||||
switch (conflictState) {
|
||||
case "warning":
|
||||
return "存在并行风险";
|
||||
case "blocked":
|
||||
return "已阻断";
|
||||
case "none":
|
||||
default:
|
||||
return "暂无";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user