mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
fix(web): localize user.role_changed audit label
Adds the missing case so role-change entries display in Chinese instead of falling through to the generic key→target format. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
780726a4e3
commit
c0504d65a5
1 file changed
+1
@@ -1112,6 +1112,7 @@ function describeAction(e: AuditEntry): string {
|
||||
case 'user.deleted': return `删除用户 ${target}`;
|
||||
case 'user.password_reset': return `重置 ${target} 的密码`;
|
||||
case 'user.password_changed': return `修改自己的密码`;
|
||||
case 'user.role_changed': return `变更 ${target} 的角色`;
|
||||
default: return `${e.action} → ${target}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user