Skip to content

Commit 050c502

Browse files
committed
add localized labels for activity log types in useActivityLogFilters
add missing activity log types in filters
1 parent 09546b5 commit 050c502

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

frontend/src/composables/useActivityLogFilters.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,26 @@ export function useActivityLogFilters () {
2020
type: FIELD_TYPE.SELECT,
2121
operators: FIELD_OPERATORS.SELECT,
2222
options: [{
23-
label: 'Agent login',
23+
label: t('activityLog.type.agentLogin'),
2424
value: 'agent_login'
2525
}, {
26-
label: 'Agent logout',
26+
label: t('activityLog.type.agentLogout'),
2727
value: 'agent_logout'
2828
}, {
29-
label: 'Agent away',
29+
label: t('activityLog.type.agentAway'),
3030
value: 'agent_away'
3131
}, {
32-
label: 'Agent away reassigned',
32+
label: t('activityLog.type.agentAwayReassigned'),
3333
value: 'agent_away_reassigned'
3434
}, {
35-
label: 'Agent online',
35+
label: t('activityLog.type.agentOnline'),
3636
value: 'agent_online'
37+
}, {
38+
label: t('activityLog.type.agentPasswordSet'),
39+
value: 'agent_password_set'
40+
}, {
41+
label: t('activityLog.type.agentRolePermissionsChanged'),
42+
value: 'agent_role_permissions_changed'
3743
}]
3844
},
3945
}))

i18n/en.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
"globals.terms.actor": "Actor | Actors",
2222
"globals.terms.page": "Page | Pages",
2323
"globals.terms.activityLog": "Activity log | Activity logs",
24+
"activityLog.type.agentLogin": "Agent login",
25+
"activityLog.type.agentLogout": "Agent logout",
26+
"activityLog.type.agentAway": "Agent away",
27+
"activityLog.type.agentAwayReassigned": "Agent away reassigned",
28+
"activityLog.type.agentOnline": "Agent online",
29+
"activityLog.type.agentPasswordSet": "Agent password set",
30+
"activityLog.type.agentRolePermissionsChanged": "Agent role permissions changed",
2431
"globals.terms.name": "Name | Names",
2532
"globals.terms.image": "Image | Images",
2633
"globals.terms.thumbnail": "Thumbnail | Thumbnails",

0 commit comments

Comments
 (0)