fix: block button

This commit is contained in:
naiba
2024-12-23 19:47:57 +08:00
parent 5bd24668c7
commit 73bb668c83
5 changed files with 5 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ export function HeaderBlockButtonGroup<E, U>({
<>
<AlertDialog>
<AlertDialogTrigger asChild>
<IconButton variant="destructive" icon="trash" />
<IconButton variant="destructive" icon="ban" />
</AlertDialogTrigger>
<AlertDialogContent className="sm:max-w-lg">
<AlertDialogHeader>

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC authentication failed",
"APITokenInvalid": "API token is invalid",
"UserInvalid": "User is invalid",
"BlockByUser": "Blocked by user",
"BlockByUser": "Blocked by admin",
"BlockIdentifier": "Block identifier",
"UserId": "User ID",
"ConnectedAt": "Connected at",

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 认证失败",
"APITokenInvalid": "API 令牌无效",
"UserInvalid": "用户无效",
"BlockByUser": "被用户封禁",
"BlockByUser": "被管理员封禁",
"BlockIdentifier": "封禁标识",
"UserId": "用户 ID",
"ConnectedAt": "连接时间",

View File

@@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 認證失敗",
"APITokenInvalid": "API 令牌無效",
"UserInvalid": "使用者無效",
"BlockByUser": "被使用者封鎖",
"BlockByUser": "被管理员封鎖",
"BlockIdentifier": "封鎖標識符",
"UserId": "使用者 ID",
"ConnectedAt": "連接時間",

View File

@@ -15,6 +15,7 @@ export const wafBlockReasons: Record<number, string> = {
1: i18n.t("LoginFailed"),
2: i18n.t("BruteForceAttackingToken"),
3: i18n.t("BruteForceAttackingAgentSecret"),
4: i18n.t("BlockByUser"),
}
export const wafBlockIdentifiers: Record<number, string> = {