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

+6-8
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

-1
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)