From 2047a6378bf1fdcf4233e6457f50fda4f35bff83 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Tue, 12 Jan 2021 17:13:59 -0600 Subject: [PATCH] [Policy] Update Personal Ownership checkbox description (#767) * Initial commit of enabled checkbox description update * Updated requested changes * Fixed merge conflict --- src/app/organizations/manage/policy-edit.component.html | 2 +- src/app/organizations/manage/policy-edit.component.ts | 5 +++++ src/locales/en/messages.json | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/organizations/manage/policy-edit.component.html b/src/app/organizations/manage/policy-edit.component.html index d5795feacc..02f9313b99 100644 --- a/src/app/organizations/manage/policy-edit.component.html +++ b/src/app/organizations/manage/policy-edit.component.html @@ -36,7 +36,7 @@
- +
diff --git a/src/app/organizations/manage/policy-edit.component.ts b/src/app/organizations/manage/policy-edit.component.ts index ebf934b716..9fde3db300 100644 --- a/src/app/organizations/manage/policy-edit.component.ts +++ b/src/app/organizations/manage/policy-edit.component.ts @@ -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: diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 45f5cdeb47..51cb16bc54 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -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."