fix(plugin-authentication): CB-606 show placeholder dots when editing user password

This commit is contained in:
Naumov Alexey
2021-01-18 13:49:36 +03:00
parent c4095e962a
commit 9b1083af8b
2 changed files with 3 additions and 1 deletions
@@ -48,6 +48,7 @@ export class UserFormController implements IInitializableController, IDestructib
}
user!: AdminUserInfo;
editing!: boolean;
readonly error: GQLErrorCatcher;
@@ -55,7 +56,6 @@ export class UserFormController implements IInitializableController, IDestructib
private connectionAccessChanged: boolean;
private connectionAccessLoaded: boolean;
private collapse!: () => void;
private editing!: boolean;
constructor(
private notificationService: NotificationService,
@@ -64,6 +64,7 @@ export const UserInfo: TabContainerPanelComponent<IUserFormProps> = observer(fun
type='password'
name='password'
autoComplete='new-password'
placeholder={controller.editing ? '••••••' : ''}
value={controller.credentials.password}
disabled={controller.isSaving}
mod='surface'
@@ -77,6 +78,7 @@ export const UserInfo: TabContainerPanelComponent<IUserFormProps> = observer(fun
<InputField
type='password'
name='password_repeat'
placeholder={controller.editing ? '••••••' : ''}
value={controller.credentials.passwordRepeat}
disabled={controller.isSaving}
mod='surface'