diff --git a/framework/core/js/src/admin/components/UserListPage.tsx b/framework/core/js/src/admin/components/UserListPage.tsx
index aa06afbfc1..425b568956 100644
--- a/framework/core/js/src/admin/components/UserListPage.tsx
+++ b/framework/core/js/src/admin/components/UserListPage.tsx
@@ -18,6 +18,7 @@ import extractText from '../../common/utils/extractText';
import AdminPage from './AdminPage';
import { debounce } from '../../common/utils/throttleDebounce';
import CreateUserModal from './CreateUserModal';
+import Dropdown from '../../common/components/Dropdown';
type ColumnData = {
/**
@@ -425,17 +426,18 @@ export default class UserListPage extends AdminPage {
);
columns.add(
- 'editUser',
+ 'userActions',
{
- name: app.translator.trans('core.admin.users.grid.columns.edit_user.title'),
+ name: app.translator.trans('core.admin.users.grid.columns.user_actions.title'),
content: (user: User) => (
-
+ {this.userActionItems(user).toArray()}
+
),
},
-90
@@ -453,6 +455,24 @@ export default class UserListPage extends AdminPage {
};
}
+ userActionItems(user: User): ItemList {
+ const items = new ItemList();
+
+ items.add(
+ 'editUser',
+
+ );
+
+ return items;
+ }
+
/**
* Asynchronously fetch the next set of users to be rendered.
*
diff --git a/framework/core/locale/core.yml b/framework/core/locale/core.yml
index 24eeb31645..8e2184cc6f 100644
--- a/framework/core/locale/core.yml
+++ b/framework/core/locale/core.yml
@@ -271,7 +271,6 @@ core:
edit_user:
button: => core.ref.edit
- title: => core.ref.edit_user
tooltip: Edit {username}
email:
@@ -286,6 +285,9 @@ core:
join_time:
title: Joined
+ user_actions:
+ title: Actions
+
user_id:
title: ID