You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-15 11:01:52 +03:00
Show spinner whilst processing recaptcha response
The fact that we showed no feedback whilst submitting the captcha response was causing confusion on slower connections where this took a nontrivial amount of time. Takes a new flag from the js-sdk that indicates whether the request being made is a background request, presenting a spinner appropriately. Requires https://github.com/matrix-org/matrix-js-sdk/pull/396
This commit is contained in:
@ -140,9 +140,9 @@ export default React.createClass({
|
||||
});
|
||||
},
|
||||
|
||||
_requestCallback: function(auth) {
|
||||
_requestCallback: function(auth, background) {
|
||||
this.setState({
|
||||
busy: true,
|
||||
busy: !background,
|
||||
errorText: null,
|
||||
stageErrorText: null,
|
||||
});
|
||||
@ -150,9 +150,11 @@ export default React.createClass({
|
||||
if (this._unmounted) {
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
busy: false,
|
||||
});
|
||||
if (background) {
|
||||
this.setState({
|
||||
busy: false,
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user