1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 16:43:27 +00:00

[PM-32530] [Defect] Double / infinite spinner is displayed when accessing an email verified Send (#19125)

* remove redundant spinner

* fix infinite spinner
This commit is contained in:
John Harrington
2026-02-23 15:32:50 -07:00
committed by GitHub
parent e7bf683503
commit 39b09d9310
3 changed files with 10 additions and 16 deletions

View File

@@ -27,6 +27,7 @@
buttonType="primary"
[loading]="loading()"
[block]="true"
[disabled]="!otp?.value"
class="tw-mb-3"
>
<span>{{ "viewSend" | i18n }} </span>

View File

@@ -1,13 +1,3 @@
@if (loading()) {
<div class="tw-text-center">
<i
class="bwi bwi-spinner bwi-spin bwi-2x tw-text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="tw-sr-only">{{ "loading" | i18n }}</span>
</div>
}
<form [formGroup]="sendAccessForm" (ngSubmit)="onSubmit()">
@if (error()) {
<div class="tw-text-main tw-text-center">

View File

@@ -81,13 +81,16 @@ export class SendAuthComponent implements OnInit {
this.loading.set(true);
this.unavailable.set(false);
this.error.set(false);
const sendEmailOtp = await this.configService.getFeatureFlag(FeatureFlag.SendEmailOTP);
if (sendEmailOtp) {
await this.attemptV2Access();
} else {
await this.attemptV1Access();
try {
const sendEmailOtp = await this.configService.getFeatureFlag(FeatureFlag.SendEmailOTP);
if (sendEmailOtp) {
await this.attemptV2Access();
} else {
await this.attemptV1Access();
}
} finally {
this.loading.set(false);
}
this.loading.set(false);
}
onBackToEmail() {