Skip to content

Commit

Permalink
PM-8113 - TwoFactorAuthWebAuthn - Add loading state for iframe until …
Browse files Browse the repository at this point in the history
…webauthn ready
  • Loading branch information
JaredSnider-Bitwarden committed Jan 31, 2025
1 parent bb54b30 commit afad4e0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<div id="web-authn-frame" class="tw-mb-3" *ngIf="!webAuthnNewTab">
<iframe id="webauthn_iframe" sandbox="allow-scripts allow-same-origin"></iframe>
<div *ngIf="!webAuthnReady" class="tw-flex tw-items-center tw-justify-center">
<i class="bwi bwi-spinner bwi-spin bwi-3x" aria-hidden="true"></i>
</div>

<iframe
id="webauthn_iframe"
sandbox="allow-scripts allow-same-origin"
[ngClass]="{ 'tw-hidden': !webAuthnReady }"
></iframe>
</div>
<ng-container *ngIf="webAuthnNewTab">
<div class="content text-center" *ngIf="webAuthnNewTab">
Expand Down

0 comments on commit afad4e0

Please sign in to comment.