From 6bb6a674ecf7ea038c816c8f718d6c5ef1b12528 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Tue, 30 Mar 2021 07:47:45 +1000 Subject: [PATCH] Hide email address in Sends (#895) * Let organizations disable anonymous sends only * Add hide email option to send * Display warning for anonymous Sends * Enforce new Send policy, fix naming conventions * Minor UI improvements * Fix linting * Fully disable editing anonymous Sends per policy * Revert "Let organizations disable anonymous sends only" This reverts commit 7877cb7751e6e765d45cf6ffbe5a684e60923b56. * Revert disableSendPolicy, add sendOptionsPolicy * Rework UI for enforcing DisableHideEmail * Fix typo * Minor UI tweaks * Minor UI tweaks * Tweaks to UI copy * Apply suggestions from code review Minor changes to UI text Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com> * style fixes * update jslib * Move SendOptionsExemptions warning banner * updated service params * Remove whitespace * updated jslib * Revert "updated jslib" This reverts commit 8fd141c5b77acabac81ee2995dd09870eb98593a. * updated jslib * Attachment azure upload blobs (#898) * Upload and download attachments using direct urls * Include FileUploadService dependency * Update max file size message to current max * Update jslib * Update jslib * updated service params Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com> Co-authored-by: addison Co-authored-by: Matt Gibson --- .../manage/policies.component.ts | 7 +++++ .../manage/policy-edit.component.html | 11 +++++++ .../manage/policy-edit.component.ts | 13 +++++++-- src/app/send/access.component.html | 7 +++++ src/app/send/add-edit.component.html | 15 ++++++++++ src/app/services/services.module.ts | 2 +- src/locales/en/messages.json | 29 +++++++++++++++++++ 7 files changed, 81 insertions(+), 3 deletions(-) diff --git a/src/app/organizations/manage/policies.component.ts b/src/app/organizations/manage/policies.component.ts index 81d5aa0d..ef4161e3 100644 --- a/src/app/organizations/manage/policies.component.ts +++ b/src/app/organizations/manage/policies.component.ts @@ -109,6 +109,13 @@ export class PoliciesComponent implements OnInit { enabled: false, display: true, }, + { + name: this.i18nService.t('sendOptions'), + description: this.i18nService.t('sendOptionsPolicyDesc'), + type: PolicyType.SendOptions, + enabled: false, + display: true, + }, ]; await this.load(); diff --git a/src/app/organizations/manage/policy-edit.component.html b/src/app/organizations/manage/policy-edit.component.html index 91f78721..3fb734bd 100644 --- a/src/app/organizations/manage/policy-edit.component.html +++ b/src/app/organizations/manage/policy-edit.component.html @@ -35,6 +35,9 @@ {{'disableSendExemption' | i18n}} + + {{'sendOptionsExemption' | i18n}} +
{{'includeNumber' | i18n}}
+ +

{{'options' | i18n}}

+
+ + +
+
+
diff --git a/src/app/send/add-edit.component.html b/src/app/send/add-edit.component.html index 69e529dc..d479bed2 100644 --- a/src/app/send/add-edit.component.html +++ b/src/app/send/add-edit.component.html @@ -12,6 +12,12 @@ {{'sendDisabledWarning' | i18n}} + + {{'sendOptionsPolicyInEffect' | i18n}} +
    +
  • {{'sendDisableHideEmailInEffect' | i18n}}
  • +
+
@@ -207,6 +213,15 @@ [readOnly]="disableSend">
{{'sendNotesDesc' | i18n}}
+
+
+ + +
+