From a3ee5822f7a84c96246e46cf3737a27c123cc479 Mon Sep 17 00:00:00 2001 From: Kira Pilot Date: Thu, 2 Feb 2023 19:57:30 +0000 Subject: [PATCH] fix: hide IP on workspace build logs --- site/src/components/AuditLogRow/AuditLogRow.tsx | 14 ++++++-------- site/src/i18n/en/auditLog.json | 1 - 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/site/src/components/AuditLogRow/AuditLogRow.tsx b/site/src/components/AuditLogRow/AuditLogRow.tsx index 10719bbe34b4f..6dc7e42ceab2f 100644 --- a/site/src/components/AuditLogRow/AuditLogRow.tsx +++ b/site/src/components/AuditLogRow/AuditLogRow.tsx @@ -117,14 +117,12 @@ export const AuditLogRow: React.FC = ({ - - <>{t("auditLog:table.logRow.ip")} - - {auditLog.ip - ? auditLog.ip - : t("auditLog:table.logRow.notAvailable")} - - + {auditLog.ip && ( + + <>{t("auditLog:table.logRow.ip")} + {auditLog.ip} + + )} <>{t("auditLog:table.logRow.os")} diff --git a/site/src/i18n/en/auditLog.json b/site/src/i18n/en/auditLog.json index c0b9c5864d97a..cce2049f60ee6 100644 --- a/site/src/i18n/en/auditLog.json +++ b/site/src/i18n/en/auditLog.json @@ -12,7 +12,6 @@ "ip": "IP: ", "os": "OS: ", "browser": "Browser: ", - "notAvailable": "Not available", "onBehalfOf": " on behalf of {{owner}}", "buildReason": "Coder automatically" } 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