mirror of
https://github.com/bitwarden/browser
synced 2024-12-24 00:54:30 +01:00
added checked or unchecked validation to send hide email policy subscriber (#6317)
This commit is contained in:
parent
1f62117977
commit
16fe609867
@ -154,8 +154,13 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
.policyAppliesToActiveUser$(PolicyType.SendOptions, (p) => p.data.disableHideEmail)
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
.subscribe((policyAppliesToActiveUser) => {
|
||||
if ((this.disableHideEmail = policyAppliesToActiveUser)) {
|
||||
if (
|
||||
(this.disableHideEmail = policyAppliesToActiveUser) &&
|
||||
!this.formGroup.controls.hideEmail.value
|
||||
) {
|
||||
this.formGroup.controls.hideEmail.disable();
|
||||
} else {
|
||||
this.formGroup.controls.hideEmail.enable();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user