remove spurious Sign In button and legacy Return to App buttons
This commit is contained in:
parent
14d9743e30
commit
655d0c615a
2 changed files with 17 additions and 4 deletions
|
@ -346,12 +346,15 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
let returnToAppJsx;
|
let returnToAppJsx;
|
||||||
if (this.props.onCancelClick && theme !== 'status') {
|
/*
|
||||||
|
// with the advent of ILAG I don't think we need this any more
|
||||||
|
if (this.props.onCancelClick) {
|
||||||
returnToAppJsx =
|
returnToAppJsx =
|
||||||
<a className="mx_Login_create" onClick={this.props.onCancelClick} href="#">
|
<a className="mx_Login_create" onClick={this.props.onCancelClick} href="#">
|
||||||
{ _t('Return to app') }
|
{ _t('Return to app') }
|
||||||
</a>;
|
</a>;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
let serverConfig;
|
let serverConfig;
|
||||||
let header;
|
let header;
|
||||||
|
|
|
@ -382,6 +382,8 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
let returnToAppJsx;
|
let returnToAppJsx;
|
||||||
|
/*
|
||||||
|
// with the advent of ILAG I don't think we need this any more
|
||||||
if (this.props.onCancelClick) {
|
if (this.props.onCancelClick) {
|
||||||
returnToAppJsx = (
|
returnToAppJsx = (
|
||||||
<a className="mx_Login_create" onClick={this.props.onCancelClick} href="#">
|
<a className="mx_Login_create" onClick={this.props.onCancelClick} href="#">
|
||||||
|
@ -389,6 +391,7 @@ module.exports = React.createClass({
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
let header;
|
let header;
|
||||||
let errorText;
|
let errorText;
|
||||||
|
@ -402,6 +405,15 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let signIn;
|
||||||
|
if (!this.state.doingUIAuth) {
|
||||||
|
signIn = (
|
||||||
|
<a className="mx_Login_create" onClick={this.props.onLoginClick} href="#">
|
||||||
|
{ theme === 'status' ? _t('Sign in') : _t('I already have an account') }
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LoginPage>
|
<LoginPage>
|
||||||
<div className="mx_Login_box">
|
<div className="mx_Login_box">
|
||||||
|
@ -413,9 +425,7 @@ module.exports = React.createClass({
|
||||||
/>
|
/>
|
||||||
{ header }
|
{ header }
|
||||||
{ registerBody }
|
{ registerBody }
|
||||||
<a className="mx_Login_create" onClick={this.props.onLoginClick} href="#">
|
{ signIn }
|
||||||
{ theme === 'status' ? _t('Sign in') : _t('I already have an account') }
|
|
||||||
</a>
|
|
||||||
{ errorText }
|
{ errorText }
|
||||||
{ returnToAppJsx }
|
{ returnToAppJsx }
|
||||||
<LoginFooter />
|
<LoginFooter />
|
||||||
|
|
Loading…
Reference in a new issue