1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

HideEmail enable validation moved to UpdateFormValues (#6310)

This commit is contained in:
aj-rosado
2023-09-15 12:50:38 +01:00
committed by GitHub
parent f606dfbc96
commit 21c4f3576f

View File

@@ -207,9 +207,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.send = await send.decrypt(); this.send = await send.decrypt();
this.type = this.send.type; this.type = this.send.type;
this.updateFormValues(); this.updateFormValues();
if (this.send.hideEmail) {
this.formGroup.controls.hideEmail.enable();
}
} else { } else {
this.send = new SendView(); this.send = new SendView();
this.send.type = this.type; this.send.type = this.type;
@@ -425,6 +422,10 @@ export class AddEditComponent implements OnInit, OnDestroy {
"yyyy-MM-ddTHH:mm" "yyyy-MM-ddTHH:mm"
), ),
}); });
if (this.send.hideEmail) {
this.formGroup.controls.hideEmail.enable();
}
} }
private async handleCopyLinkToClipboard() { private async handleCopyLinkToClipboard() {