You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Invert to be if(!form) goback
This commit is contained in:
@@ -560,13 +560,12 @@ module.exports = React.createClass({
|
|||||||
{ _t('Sign in instead') }
|
{ _t('Sign in instead') }
|
||||||
</a>;
|
</a>;
|
||||||
|
|
||||||
let goBack = <a className="mx_AuthBody_changeFlow" onClick={this.onGoToFormClicked} href="#">
|
// Only show the 'go back' button if you're not looking at the form
|
||||||
|
let goBack;
|
||||||
|
if ((PHASES_ENABLED && this.state.phase !== PHASE_REGISTRATION) || this.state.doingUIAuth) {
|
||||||
|
goBack = <a className="mx_AuthBody_changeFlow" onClick={this.onGoToFormClicked} href="#">
|
||||||
{ _t('Go back') }
|
{ _t('Go back') }
|
||||||
</a>;
|
</a>;
|
||||||
|
|
||||||
// Don't show the 'go back' button in one specific case: when you're staring at the form.
|
|
||||||
if ((PHASES_ENABLED && this.state.phase === PHASE_REGISTRATION) && !this.state.doingUIAuth) {
|
|
||||||
goBack = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user