fix: hide IP on workspace build logs (#5997)

This commit is contained in:
Kira Pilot
2023-02-02 20:22:36 +00:00
committed by GitHub
parent 2fab310ca4
commit a70e722e7f
2 changed files with 6 additions and 9 deletions
@@ -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")}</>
-1
View File
@@ -12,7 +12,6 @@
"ip": "IP: ",
"os": "OS: ",
"browser": "Browser: ",
"notAvailable": "Not available",
"onBehalfOf": " on behalf of {{owner}}",
"buildReason": "Coder automatically"
}