From 07bc58add4fe723e19d90d2e05667df6e5bd9470 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Tue, 21 Feb 2023 13:03:35 +0000 Subject: [PATCH] feat: add display name column to admin users list --- framework/core/js/src/admin/components/UserListPage.tsx | 9 +++++++++ framework/core/locale/core.yml | 3 +++ 2 files changed, 12 insertions(+) diff --git a/framework/core/js/src/admin/components/UserListPage.tsx b/framework/core/js/src/admin/components/UserListPage.tsx index 9d8bd11100..7e13297ef1 100644 --- a/framework/core/js/src/admin/components/UserListPage.tsx +++ b/framework/core/js/src/admin/components/UserListPage.tsx @@ -216,6 +216,15 @@ export default class UserListPage extends AdminPage { 90 ); + columns.add( + 'displayName', + { + name: app.translator.trans('core.admin.users.grid.columns.display_name.title'), + content: (user: User) => user.displayName(), + }, + 85 + ); + columns.add( 'joinDate', { diff --git a/framework/core/locale/core.yml b/framework/core/locale/core.yml index 997afb4dd3..e445324c4f 100644 --- a/framework/core/locale/core.yml +++ b/framework/core/locale/core.yml @@ -245,6 +245,9 @@ core: grid: columns: + display_name: + title: Display name + edit_user: button: => core.ref.edit title: => core.ref.edit_user