mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
added checked or unchecked validation to send hide email policy subscriber (#6317)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user