1
0
mirror of https://github.com/bitwarden/web synced 2026-01-01 08:03:13 +00:00

Implement disable send policy (#819)

* Implement disable send policy

* Update jslib reference

* PR review

* Lower case enterprise policy
This commit is contained in:
Matt Gibson
2021-02-04 13:08:16 -06:00
committed by GitHub
parent 2e7b88f149
commit af7e2edbf0
8 changed files with 73 additions and 20 deletions

View File

@@ -102,6 +102,13 @@ export class PoliciesComponent implements OnInit {
enabled: false,
display: true,
},
{
name: this.i18nService.t('disableSend'),
description: this.i18nService.t('disableSendPolicyDesc'),
type: PolicyType.DisableSend,
enabled: false,
display: true,
},
];
await this.load();

View File

@@ -32,6 +32,9 @@
<app-callout type="warning" *ngIf="type === policyType.PersonalOwnership">
{{'personalOwnershipExemption' | i18n}}
</app-callout>
<app-callout type="warning" *ngIf="type === policyType.DisableSend">
{{'disableSendExemption' | i18n}}
</app-callout>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="enabled" [(ngModel)]="enabled"