mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +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)
|
.policyAppliesToActiveUser$(PolicyType.SendOptions, (p) => p.data.disableHideEmail)
|
||||||
.pipe(takeUntil(this.destroy$))
|
.pipe(takeUntil(this.destroy$))
|
||||||
.subscribe((policyAppliesToActiveUser) => {
|
.subscribe((policyAppliesToActiveUser) => {
|
||||||
if ((this.disableHideEmail = policyAppliesToActiveUser)) {
|
if (
|
||||||
|
(this.disableHideEmail = policyAppliesToActiveUser) &&
|
||||||
|
!this.formGroup.controls.hideEmail.value
|
||||||
|
) {
|
||||||
this.formGroup.controls.hideEmail.disable();
|
this.formGroup.controls.hideEmail.disable();
|
||||||
|
} else {
|
||||||
|
this.formGroup.controls.hideEmail.enable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user