mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
HideEmail enable validation moved to UpdateFormValues (#6310)
This commit is contained in:
@@ -207,9 +207,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
this.send = await send.decrypt();
|
||||
this.type = this.send.type;
|
||||
this.updateFormValues();
|
||||
if (this.send.hideEmail) {
|
||||
this.formGroup.controls.hideEmail.enable();
|
||||
}
|
||||
} else {
|
||||
this.send = new SendView();
|
||||
this.send.type = this.type;
|
||||
@@ -425,6 +422,10 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
"yyyy-MM-ddTHH:mm"
|
||||
),
|
||||
});
|
||||
|
||||
if (this.send.hideEmail) {
|
||||
this.formGroup.controls.hideEmail.enable();
|
||||
}
|
||||
}
|
||||
|
||||
private async handleCopyLinkToClipboard() {
|
||||
|
||||
Reference in New Issue
Block a user