|
|
@ -404,6 +404,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
|
|
|
|
<SessionInput
|
|
|
|
<SessionInput
|
|
|
|
label={window.i18n('recoveryPhrase')}
|
|
|
|
label={window.i18n('recoveryPhrase')}
|
|
|
|
type="password"
|
|
|
|
type="password"
|
|
|
|
|
|
|
|
autoFocus={true}
|
|
|
|
placeholder={window.i18n('enterRecoveryPhrase')}
|
|
|
|
placeholder={window.i18n('enterRecoveryPhrase')}
|
|
|
|
enableShowHide={true}
|
|
|
|
enableShowHide={true}
|
|
|
|
onValueChanged={(val: string) => {
|
|
|
|
onValueChanged={(val: string) => {
|
|
|
@ -413,7 +414,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
|
|
|
|
this.handlePressEnter();
|
|
|
|
this.handlePressEnter();
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{this.renderNamePasswordAndVerifyPasswordFields()}
|
|
|
|
{this.renderNamePasswordAndVerifyPasswordFields(false)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -467,7 +468,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
|
|
|
|
if (signUpMode === SignUpMode.EnterDetails) {
|
|
|
|
if (signUpMode === SignUpMode.EnterDetails) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={classNames('session-registration__entry-fields')}>
|
|
|
|
<div className={classNames('session-registration__entry-fields')}>
|
|
|
|
{this.renderNamePasswordAndVerifyPasswordFields()}
|
|
|
|
{this.renderNamePasswordAndVerifyPasswordFields(true)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -475,7 +476,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private renderNamePasswordAndVerifyPasswordFields() {
|
|
|
|
private renderNamePasswordAndVerifyPasswordFields(stealAutoFocus: boolean = false) {
|
|
|
|
const { password, passwordFieldsMatch } = this.state;
|
|
|
|
const { password, passwordFieldsMatch } = this.state;
|
|
|
|
const passwordsDoNotMatch =
|
|
|
|
const passwordsDoNotMatch =
|
|
|
|
!passwordFieldsMatch && this.state.password
|
|
|
|
!passwordFieldsMatch && this.state.password
|
|
|
@ -485,6 +486,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="inputfields">
|
|
|
|
<div className="inputfields">
|
|
|
|
<SessionInput
|
|
|
|
<SessionInput
|
|
|
|
|
|
|
|
autoFocus={stealAutoFocus}
|
|
|
|
label={window.i18n('displayName')}
|
|
|
|
label={window.i18n('displayName')}
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
placeholder={window.i18n('enterDisplayName')}
|
|
|
|
placeholder={window.i18n('enterDisplayName')}
|
|
|
|