Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: change build audit log string to be clearer #6093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing bolding
  • Loading branch information
Kira-Pilot committed Feb 7, 2023
commit d0ba8eb24e40c3af9ac8f044032bc50d57402eac
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ export const AuditLogDescription: FC<{ auditLog: AuditLog }> = ({
const onBehalfOf =
auditLog.additional_fields.workspace_owner &&
auditLog.additional_fields.workspace_owner !== "unknown" &&
auditLog.additional_fields.workspace_owner !== auditLog.user?.username &&
`on behalf of ${auditLog.additional_fields.workspace_owner}`
auditLog.additional_fields.workspace_owner !== auditLog.user?.username
? `on behalf of ${auditLog.additional_fields.workspace_owner}`
: ""

if (auditLog.resource_link) {
return (
Expand Down
4 changes: 2 additions & 2 deletions site/src/i18n/en/auditLog.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"description": {
"linkedWorkspaceBuild": "{{user}} <1>{{action}}</1> workspace <strong>{{workspaceName}}</strong>",
"unlinkedWorkspaceBuild": "{{user}} {{action}} workspace <strong>{{workspaceName}}</strong>",
"linkedAuditDescription": "{{truncatedDescription}} <1>{{target}}</1> {{onBehalfOf}}",
"unlinkedAuditDescription": "{{truncatedDescription}} {{target}} {{onBehalfOf}}"
"linkedAuditDescription": "{{truncatedDescription}} <1><strong>{{target}}</strong></1> {{onBehalfOf}}",
"unlinkedAuditDescription": "{{truncatedDescription}} <strong>{{target}}</strong> {{onBehalfOf}}"
},
"deletedLabel": " (deleted)",
"ip": "IP: ",
Expand Down