Skip to content

Commit a70e722

Browse files
authored
fix: hide IP on workspace build logs (#5997)
1 parent 2fab310 commit a70e722

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

site/src/components/AuditLogRow/AuditLogRow.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,12 @@ export const AuditLogRow: React.FC<AuditLogRowProps> = ({
117117

118118
<Stack direction="row" alignItems="center">
119119
<Stack direction="row" spacing={1} alignItems="baseline">
120-
<span className={styles.auditLogInfo}>
121-
<>{t("auditLog:table.logRow.ip")}</>
122-
<strong>
123-
{auditLog.ip
124-
? auditLog.ip
125-
: t("auditLog:table.logRow.notAvailable")}
126-
</strong>
127-
</span>
120+
{auditLog.ip && (
121+
<span className={styles.auditLogInfo}>
122+
<>{t("auditLog:table.logRow.ip")}</>
123+
<strong>{auditLog.ip}</strong>
124+
</span>
125+
)}
128126

129127
<span className={styles.auditLogInfo}>
130128
<>{t("auditLog:table.logRow.os")}</>

site/src/i18n/en/auditLog.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"ip": "IP: ",
1313
"os": "OS: ",
1414
"browser": "Browser: ",
15-
"notAvailable": "Not available",
1615
"onBehalfOf": " on behalf of {{owner}}",
1716
"buildReason": "Coder automatically"
1817
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy