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
Lock interactive auth as busy until state change
This keeps interactive auth locked as busy until a state change so that e.g. accepting a terms step will remain "busy looking" until the next step of the process appears. Fixes https://github.com/vector-im/riot-web/issues/12546
This commit is contained in:
@ -161,6 +161,7 @@ export default createReactClass({
|
|||||||
_authStateUpdated: function(stageType, stageState) {
|
_authStateUpdated: function(stageType, stageState) {
|
||||||
const oldStage = this.state.authStage;
|
const oldStage = this.state.authStage;
|
||||||
this.setState({
|
this.setState({
|
||||||
|
busy: false,
|
||||||
authStage: stageType,
|
authStage: stageType,
|
||||||
stageState: stageState,
|
stageState: stageState,
|
||||||
errorText: stageState.error,
|
errorText: stageState.error,
|
||||||
@ -184,10 +185,6 @@ export default createReactClass({
|
|||||||
errorText: null,
|
errorText: null,
|
||||||
stageErrorText: null,
|
stageErrorText: null,
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.setState({
|
|
||||||
busy: false,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user