From 60df8a14033fe1465320ce9970e3f44f78da8428 Mon Sep 17 00:00:00 2001 From: Wroud Date: Tue, 2 Nov 2021 22:27:39 +0300 Subject: [PATCH] fix(plugin-authentication): CB-1355 users meta parameters --- .../src/Administration/Users/UserForm/UserFormController.ts | 1 + .../src/Administration/Users/UserForm/UserInfo.tsx | 2 +- .../src/Administration/Users/UsersTable/UserEditController.ts | 4 ++-- webapp/packages/plugin-authentication/src/locales/en.ts | 1 + webapp/packages/plugin-authentication/src/locales/it.ts | 1 + webapp/packages/plugin-authentication/src/locales/ru.ts | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserFormController.ts b/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserFormController.ts index c4ce7ff5ca..bb1777d7ac 100644 --- a/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserFormController.ts +++ b/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserFormController.ts @@ -296,6 +296,7 @@ export class UserFormController implements IInitializableController, IDestructib private async loadUser() { try { + this.credentials.metaParameters = this.user.metaParameters; this.credentials.login = this.user.userId; this.credentials.roles = new Map(this.user.grantedRoles.map(roleId => ([roleId, true]))); } catch (exception) { diff --git a/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserInfo.tsx b/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserInfo.tsx index 53252779ca..d6c005c7cf 100644 --- a/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserInfo.tsx +++ b/webapp/packages/plugin-authentication/src/Administration/Users/UserForm/UserInfo.tsx @@ -109,7 +109,7 @@ export const UserInfo: TabContainerPanelComponent = observer(fun {() => userMetaParameters.data.length > 0 && styled(style)( - {translate('authentication_user_credentials')} + {translate('authentication_user_meta_parameters')}