This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-gateway.git
The following commit(s) were added to refs/heads/master by this push:
new 20a79bd fix(web): give a removed entry its own badge instead of a
type error
20a79bd is described below
commit 20a79bd8e9035bb7e36fd94223156923a199467a
Author: Yang Luo <[email protected]>
AuthorDate: Sun Sep 6 02:08:25 2026 +0800
fix(web): give a removed entry its own badge instead of a type error
---
web/src/components/agent-config/action-badge.tsx | 1 +
web/src/locales/en/data.json | 1 +
web/src/locales/zh/data.json | 1 +
3 files changed, 3 insertions(+)
diff --git a/web/src/components/agent-config/action-badge.tsx
b/web/src/components/agent-config/action-badge.tsx
index 8029a3a..52d10c7 100644
--- a/web/src/components/agent-config/action-badge.tsx
+++ b/web/src/components/agent-config/action-badge.tsx
@@ -20,6 +20,7 @@ import type {AgentConfigAction} from "@/types";
const actionStyles: Record<AgentConfigAction, {variant: BadgeVariant; label:
string}> = {
create: {variant: "success", label: "agentConfig:New"},
overwrite: {variant: "warning", label: "agentConfig:Replaced"},
+ remove: {variant: "warning", label: "agentConfig:Removed"},
skip: {variant: "muted", label: "agentConfig:Skipped"},
failed: {variant: "danger", label: "agentConfig:Failed"},
};
diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json
index 0feb9eb..b0b4135 100644
--- a/web/src/locales/en/data.json
+++ b/web/src/locales/en/data.json
@@ -552,6 +552,7 @@
"Remove source": "Remove source",
"Remove source description": "Gateway drops its copy of this source.
Skills already installed from it stay where they are.",
"Remove this source?": "Remove this source?",
+ "Removed": "Removed",
"Replace items that already exist": "Replace items that already exist",
"Replaced": "Replaced",
"Restore": "Restore",
diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json
index 5c45504..b4f031b 100644
--- a/web/src/locales/zh/data.json
+++ b/web/src/locales/zh/data.json
@@ -552,6 +552,7 @@
"Remove source": "移除来源",
"Remove source description": "Gateway会删除本地缓存的副本。已经安装的技能会原样保留。",
"Remove this source?": "移除该来源?",
+ "Removed": "移除",
"Replace items that already exist": "覆盖已存在的同名项",
"Replaced": "覆盖",
"Restore": "恢复",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]