Skip to content

Commit d0ba8eb

Browse files
committed
fixing bolding
1 parent ec75fb7 commit d0ba8eb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

site/src/components/AuditLogRow/AuditLogDescription/AuditLogDescription.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ export const AuditLogDescription: FC<{ auditLog: AuditLog }> = ({
3030
const onBehalfOf =
3131
auditLog.additional_fields.workspace_owner &&
3232
auditLog.additional_fields.workspace_owner !== "unknown" &&
33-
auditLog.additional_fields.workspace_owner !== auditLog.user?.username &&
34-
`on behalf of ${auditLog.additional_fields.workspace_owner}`
33+
auditLog.additional_fields.workspace_owner !== auditLog.user?.username
34+
? `on behalf of ${auditLog.additional_fields.workspace_owner}`
35+
: ""
3536

3637
if (auditLog.resource_link) {
3738
return (

site/src/i18n/en/auditLog.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"description": {
1212
"linkedWorkspaceBuild": "{{user}} <1>{{action}}</1> workspace <strong>{{workspaceName}}</strong>",
1313
"unlinkedWorkspaceBuild": "{{user}} {{action}} workspace <strong>{{workspaceName}}</strong>",
14-
"linkedAuditDescription": "{{truncatedDescription}} <1>{{target}}</1> {{onBehalfOf}}",
15-
"unlinkedAuditDescription": "{{truncatedDescription}} {{target}} {{onBehalfOf}}"
14+
"linkedAuditDescription": "{{truncatedDescription}} <1><strong>{{target}}</strong></1> {{onBehalfOf}}",
15+
"unlinkedAuditDescription": "{{truncatedDescription}} <strong>{{target}}</strong> {{onBehalfOf}}"
1616
},
1717
"deletedLabel": " (deleted)",
1818
"ip": "IP: ",

0 commit comments

Comments
 (0)