mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: hide IP on workspace build logs (#5997)
This commit is contained in:
@@ -117,14 +117,12 @@ export const AuditLogRow: React.FC<AuditLogRowProps> = ({
|
||||
|
||||
<Stack direction="row" alignItems="center">
|
||||
<Stack direction="row" spacing={1} alignItems="baseline">
|
||||
<span className={styles.auditLogInfo}>
|
||||
<>{t("auditLog:table.logRow.ip")}</>
|
||||
<strong>
|
||||
{auditLog.ip
|
||||
? auditLog.ip
|
||||
: t("auditLog:table.logRow.notAvailable")}
|
||||
</strong>
|
||||
</span>
|
||||
{auditLog.ip && (
|
||||
<span className={styles.auditLogInfo}>
|
||||
<>{t("auditLog:table.logRow.ip")}</>
|
||||
<strong>{auditLog.ip}</strong>
|
||||
</span>
|
||||
)}
|
||||
|
||||
<span className={styles.auditLogInfo}>
|
||||
<>{t("auditLog:table.logRow.os")}</>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
"ip": "IP: ",
|
||||
"os": "OS: ",
|
||||
"browser": "Browser: ",
|
||||
"notAvailable": "Not available",
|
||||
"onBehalfOf": " on behalf of {{owner}}",
|
||||
"buildReason": "Coder automatically"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user