mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 03:50:42 +03:00
add login link to SetMxIdDialog
This commit is contained in:
parent
1efc5c2b25
commit
df599890c5
3 changed files with 13 additions and 0 deletions
|
@ -682,6 +682,10 @@ module.exports = React.createClass({
|
||||||
dis.dispatch({action: 'start_registration'});
|
dis.dispatch({action: 'start_registration'});
|
||||||
close();
|
close();
|
||||||
},
|
},
|
||||||
|
onLoginClick: (ev) => {
|
||||||
|
dis.dispatch({action: 'start_login'});
|
||||||
|
close();
|
||||||
|
},
|
||||||
}).close;
|
}).close;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -788,6 +788,10 @@ module.exports = React.createClass({
|
||||||
dis.dispatch({action: 'start_registration'});
|
dis.dispatch({action: 'start_registration'});
|
||||||
close();
|
close();
|
||||||
},
|
},
|
||||||
|
onLoginClick: (ev) => {
|
||||||
|
dis.dispatch({action: 'start_login'});
|
||||||
|
close();
|
||||||
|
},
|
||||||
}).close;
|
}).close;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,8 @@ export default React.createClass({
|
||||||
onFinished: React.PropTypes.func.isRequired,
|
onFinished: React.PropTypes.func.isRequired,
|
||||||
// Called when the user requests to register with a different homeserver
|
// Called when the user requests to register with a different homeserver
|
||||||
onDifferentServerClicked: React.PropTypes.func.isRequired,
|
onDifferentServerClicked: React.PropTypes.func.isRequired,
|
||||||
|
// Called if the user wants to switch to login instead
|
||||||
|
onLoginClick: React.PropTypes.func.isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
@ -245,6 +247,9 @@ export default React.createClass({
|
||||||
different server
|
different server
|
||||||
</a>.
|
</a>.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
If you already have a Matrix account you can <a href="#" onClick={this.props.onLoginClick}>log in</a> instead.
|
||||||
|
</p>
|
||||||
{ auth }
|
{ auth }
|
||||||
{ authErrorIndicator }
|
{ authErrorIndicator }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue