mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
hide login options for status
This commit is contained in:
parent
59b2189909
commit
adbea44d70
@ -20,7 +20,7 @@ import classNames from 'classnames';
|
||||
import sdk from '../../../index';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import {field_input_incorrect} from '../../../UiEffects';
|
||||
|
||||
import UserSettingsStore from '../../../UserSettingsStore';
|
||||
|
||||
/**
|
||||
* A pure UI component which displays a username/password form.
|
||||
@ -210,9 +210,10 @@ class PasswordLogin extends React.Component {
|
||||
|
||||
const loginField = this.renderLoginField(this.state.loginType, matrixIdText === '');
|
||||
|
||||
return (
|
||||
<div>
|
||||
<form onSubmit={this.onSubmitForm}>
|
||||
const theme = UserSettingsStore.getTheme();
|
||||
let loginType;
|
||||
if (theme !== 'status') {
|
||||
loginType = (
|
||||
<div className="mx_Login_type_container">
|
||||
<label className="mx_Login_type_label">{ _t('Sign in with') }</label>
|
||||
<Dropdown
|
||||
@ -225,6 +226,13 @@ class PasswordLogin extends React.Component {
|
||||
<span key={PasswordLogin.LOGIN_FIELD_PHONE}>{ _t('Phone') }</span>
|
||||
</Dropdown>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<form onSubmit={this.onSubmitForm}>
|
||||
{ loginType }
|
||||
{ loginField }
|
||||
<input className={pwFieldClass} ref={(e) => {this._passwordField = e;}} type="password"
|
||||
name="password"
|
||||
|
Loading…
Reference in New Issue
Block a user