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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user