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:
parent
de16d347e9
commit
b8482b6bc4
3 changed files with 122 additions and 12 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue