Skip to content

Commit

Permalink
fix: block button
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Dec 23, 2024
1 parent 5bd2466 commit 73bb668
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/header-button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 认证失败",
"APITokenInvalid": "API 令牌无效",
"UserInvalid": "用户无效",
"BlockByUser": "被用户封禁",
"BlockByUser": "被管理员封禁",
"BlockIdentifier": "封禁标识",
"UserId": "用户 ID",
"ConnectedAt": "连接时间",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-TW/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"GrpcAuthFailed": "gRPC 認證失敗",
"APITokenInvalid": "API 令牌無效",
"UserInvalid": "使用者無效",
"BlockByUser": "被使用者封鎖",
"BlockByUser": "被管理员封鎖",
"BlockIdentifier": "封鎖標識符",
"UserId": "使用者 ID",
"ConnectedAt": "連接時間",
Expand Down
1 change: 1 addition & 0 deletions src/types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {
Expand Down

0 comments on commit 73bb668

Please sign in to comment.