1
0
mirror of https://github.com/bitwarden/web synced 2025-12-26 13:13:24 +00:00

Fully disable editing anonymous Sends per policy

This commit is contained in:
Thomas Rittson
2021-03-23 16:39:40 +10:00
parent 548cb7b89e
commit 1522909c8b
2 changed files with 7 additions and 2 deletions

View File

@@ -10,7 +10,8 @@
</div>
<div class="modal-body" *ngIf="send">
<app-callout *ngIf="disableSend">
<span>{{'sendDisabledWarning' | i18n}}</span>
<span>{{(send.hideEmail && editMode && disableAnonymousSend ?
'anonymousSendDisabledWarning' : 'sendDisabledWarning') | i18n}}</span>
</app-callout>
<div class="row">
<div class="col-6 form-group">
@@ -212,7 +213,7 @@
<input class="form-check-input" type="checkbox" [(ngModel)]="send.hideEmail" id="hideEmail"
name="HideEmail" [disabled]="disableAnonymousSend || disableSend">
<label class="form-check-label" for="hideEmail">
{{'hideEmail' | i18n}}<span *ngIf="disableAnonymousSend" class="font-italic"> {{'anonymousSendDisabled' | i18n}}</span>
{{'hideEmail' | i18n}}<span *ngIf="disableAnonymousSend && !editMode" class="font-italic"> {{'anonymousSendDisabled' | i18n}}</span>
</label>
</div>
</div>

View File

@@ -3647,6 +3647,10 @@
"message": "Due to an enterprise policy, you are only able to delete an existing Send.",
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
},
"anonymousSendDisabledWarning": {
"message": "Due to an enterprise policy, you are only able to delete an existing Send that hides your email address. There are no restrictions on Sends that do not hide your email address.",
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
},
"modifiedPolicyId": {
"message": "Modified policy $ID$.",
"placeholders": {