mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
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:
parent
60b8cb1a30
commit
66438ff4ed
@ -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}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user