mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-02 03:41:09 +01:00
fix(ui): [PM-18719] fix endless spinner on read key button
This resolves an issue where the WebAuthn setup component's read key button would show a loading spinner indefinitely. The fix addresses problems with Signal handling for the bitButton component's disabled/loading states. JIRA: PM-18719
This commit is contained in:
parent
24410cd672
commit
7da329da45
@ -63,16 +63,16 @@
|
|||||||
type="button"
|
type="button"
|
||||||
[bitAction]="readKey"
|
[bitAction]="readKey"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
[disabled]="$any(readKeyBtn).loading || webAuthnListening || !keyIdAvailable"
|
[disabled]="$any(readKeyBtn).loading() || webAuthnListening || !keyIdAvailable"
|
||||||
class="tw-mr-2"
|
class="tw-mr-2"
|
||||||
#readKeyBtn
|
#readKeyBtn
|
||||||
>
|
>
|
||||||
{{ "readKey" | i18n }}
|
{{ "readKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<ng-container *ngIf="$any(readKeyBtn).loading">
|
<ng-container *ngIf="$any(readKeyBtn).loading()">
|
||||||
<i class="bwi bwi-spinner bwi-spin tw-text-muted" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin tw-text-muted" aria-hidden="true"></i>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="!$any(readKeyBtn).loading">
|
<ng-container *ngIf="!$any(readKeyBtn).loading()">
|
||||||
<ng-container *ngIf="webAuthnListening">
|
<ng-container *ngIf="webAuthnListening">
|
||||||
<i class="bwi bwi-spinner bwi-spin tw-text-muted" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin tw-text-muted" aria-hidden="true"></i>
|
||||||
{{ "twoFactorU2fWaiting" | i18n }}...
|
{{ "twoFactorU2fWaiting" | i18n }}...
|
||||||
|
Loading…
Reference in New Issue
Block a user