Fixed capitalization of API key

- using the resource type verbatim wasn't going to work with `api_key`
  because it needs splitting and capitalizing
This commit is contained in:
Daniel Lockyer 2022-08-22 15:30:13 +02:00
parent 60b8cb1a30
commit 66438ff4ed
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -38,5 +38,11 @@ function getActionIcon(ev) {
}
function getAction(ev) {
return `${ev.event} ${ev.resource_type}`;
let resourceType = ev.resource_type;
if (resourceType === 'api_key') {
resourceType = 'API key';
}
return `${ev.event} ${resourceType}`;
}