mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue