1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-01 13:11:10 +03:00

Fix: No feedback when waiting for the server on a /delete_devices request with SSO (#10795)

* add spinner while requests in progress during sso interactive auth

* strict
This commit is contained in:
Kerry
2023-05-08 09:12:45 +12:00
committed by GitHub
parent de16d347e9
commit b8482b6bc4
3 changed files with 122 additions and 12 deletions

View File

@@ -861,6 +861,7 @@ export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEn
public render(): React.ReactNode {
let continueButton: JSX.Element;
const cancelButton = (
<AccessibleButton
onClick={this.props.onCancel ?? null}
@@ -902,8 +903,14 @@ export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEn
<Fragment>
{errorSection}
<div className="mx_InteractiveAuthEntryComponents_sso_buttons">
{cancelButton}
{continueButton}
{this.props.busy ? (
<Spinner w={24} h={24} />
) : (
<>
{cancelButton}
{continueButton}
</>
)}
</div>
</Fragment>
);