hide optionality of email for status
This commit is contained in:
parent
655d0c615a
commit
015aed0597
1 changed files with 4 additions and 3 deletions
|
@ -274,10 +274,13 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
|
const theme = UserSettingsStore.getTheme();
|
||||||
|
const emailPlaceholder = theme === 'status' ? _t("Email address") : _t("Email address (optional)");
|
||||||
|
|
||||||
const emailSection = (
|
const emailSection = (
|
||||||
<div>
|
<div>
|
||||||
<input type="text" ref="email"
|
<input type="text" ref="email"
|
||||||
autoFocus={true} placeholder={_t("Email address (optional)")}
|
autoFocus={true} placeholder={ emailPlaceholder }
|
||||||
defaultValue={this.props.defaultEmail}
|
defaultValue={this.props.defaultEmail}
|
||||||
className={this._classForField(FIELD_EMAIL, 'mx_Login_field')}
|
className={this._classForField(FIELD_EMAIL, 'mx_Login_field')}
|
||||||
onBlur={function() {self.validateField(FIELD_EMAIL);}}
|
onBlur={function() {self.validateField(FIELD_EMAIL);}}
|
||||||
|
@ -306,8 +309,6 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const theme = UserSettingsStore.getTheme();
|
|
||||||
|
|
||||||
const CountryDropdown = sdk.getComponent('views.login.CountryDropdown');
|
const CountryDropdown = sdk.getComponent('views.login.CountryDropdown');
|
||||||
let phoneSection;
|
let phoneSection;
|
||||||
if (theme !== "status") {
|
if (theme !== "status") {
|
||||||
|
|
Loading…
Reference in a new issue