1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

Remove saveFormData and rely on saveFormDataWithPartialData only

This commit is contained in:
Alec Rippberger
2025-04-24 15:01:39 -05:00
parent 5b8f726a0c
commit 1515af2171
2 changed files with 6 additions and 14 deletions

View File

@@ -38,7 +38,12 @@
/>
<bit-form-control *ngIf="!hideRememberMe()">
<bit-label>{{ "dontAskAgainOnThisDeviceFor30Days" | i18n }}</bit-label>
<input type="checkbox" bitCheckbox formControlName="remember" (change)="saveFormData()" />
<input
type="checkbox"
bitCheckbox
formControlName="remember"
(change)="saveFormDataWithPartialData({ remember: $event.target.checked })"
/>
</bit-form-control>
<app-two-factor-auth-webauthn

View File

@@ -227,19 +227,6 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
});
}
/**
* Save all current form data to the cache
*/
async saveFormData() {
const formData: TwoFactorAuthComponentData = {
token: this.tokenFormControl.value || undefined,
remember: this.rememberFormControl.value ?? undefined,
selectedProviderType: this.selectedProviderType,
};
await this.saveFormDataWithPartialData(formData);
}
private async setSelected2faProviderType() {
const webAuthnSupported = this.platformUtilsService.supportsWebAuthn(this.win);