[Policy] Update Personal Ownership checkbox description (#767)

* Initial commit of enabled checkbox description update

* Updated requested changes

* Fixed merge conflict
This commit is contained in:
Vincent Salucci 2021-01-12 17:13:59 -06:00 committed by GitHub
parent dc87510a7a
commit 2047a6378b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<div class="form-check">
<input class="form-check-input" type="checkbox" id="enabled" [(ngModel)]="enabled"
name="Enabled">
<label class="form-check-label" for="enabled">{{'enabled' | i18n}}</label>
<label class="form-check-label" for="enabled">{{checkboxDesc}}</label>
</div>
</div>
<ng-container *ngIf="type === policyType.MasterPassword">

View File

@ -172,6 +172,11 @@ export class PolicyEditComponent implements OnInit {
}
}
get checkboxDesc(): string {
return this.type === PolicyType.PersonalOwnership ? this.i18nService.t('personalOwnershipCheckboxDesc') :
this.i18nService.t('enabled');
}
private preValidate(): boolean {
switch (this.type) {
case PolicyType.RequireSso:

View File

@ -3625,6 +3625,9 @@
"custom": {
"message": "Custom"
},
"personalOwnershipCheckboxDesc": {
"message": "Disable personal ownership for organization users"
},
"textHiddenByDefault": {
"message": "When accessing the Send, hide the text by default",
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."