mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Add build number to workspace_build audit logs (#5267)
* got links working * added translations * fixed translation * added translation for unavailable ip * added support for group, template, user links * cleaned up string * added deleted label * querying for workspace id * remove prints * fix/write tests * added build number * checking for existence of additional fields * adjust documentation * PR feedback
This commit is contained in:
@@ -14,10 +14,7 @@ export const AuditLogDescription: FC<{ auditLog: AuditLog }> = ({
|
||||
let target = auditLog.resource_target.trim()
|
||||
|
||||
// audit logs with a resource_type of workspace build use workspace name as a target
|
||||
if (
|
||||
auditLog.resource_type === "workspace_build" &&
|
||||
auditLog.additional_fields.workspaceName
|
||||
) {
|
||||
if (auditLog.resource_type === "workspace_build") {
|
||||
target = auditLog.additional_fields.workspaceName.trim()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user