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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>
);