Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Don't disable username/password fields whilst doing wk-lookup #7438

Merged
merged 1 commit into from
Dec 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/views/auth/PasswordLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
onChange={this.onUsernameChanged}
onFocus={this.onUsernameFocus}
onBlur={this.onUsernameBlur}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
autoFocus={autoFocus}
onValidate={this.onEmailValidate}
fieldRef={field => this[LoginField.Email] = field}
Expand All @@ -344,7 +344,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
onChange={this.onUsernameChanged}
onFocus={this.onUsernameFocus}
onBlur={this.onUsernameBlur}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
autoFocus={autoFocus}
onValidate={this.onUsernameValidate}
ref={field => this[LoginField.MatrixId] = field}
Expand All @@ -371,7 +371,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
onChange={this.onPhoneNumberChanged}
onFocus={this.onPhoneNumberFocus}
onBlur={this.onPhoneNumberBlur}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
autoFocus={autoFocus}
onValidate={this.onPhoneNumberValidate}
ref={field => this[LoginField.Password] = field}
Expand Down Expand Up @@ -422,7 +422,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
element="select"
value={this.state.loginType}
onChange={this.onLoginTypeChange}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
>
<option key={LoginField.MatrixId} value={LoginField.MatrixId}>
{ _t('Username') }
Expand Down Expand Up @@ -454,7 +454,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
label={_t('Password')}
value={this.state.password}
onChange={this.onPasswordChanged}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
autoFocus={autoFocusPassword}
onValidate={this.onPasswordValidate}
ref={field => this[LoginField.Password] = field}
Expand Down