diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.html b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.html index 29a28d0d1..2a2d73098 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.html +++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.html @@ -14,11 +14,8 @@ {{ 'add-edit-project-template.form.download-file-types.label' | translate }} - - {{ humanize(type) }} + + {{ 'download-type.' + type | translate }} @@ -28,11 +25,8 @@ {{ 'add-edit-project-template.form.report-types.label' | translate }} - - {{ humanize(type) }} + + {{ 'report-type.' + type | translate }} diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts index 1a1eb9c49..ff71f9337 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts @@ -13,7 +13,7 @@ import { RuleSetControllerService, RuleSetModel } from '@redaction/red-ui-http'; export class AddEditRuleSetDialogComponent { public ruleSetForm: FormGroup; public hasValidFrom: boolean; - public downloadTypesEnum = Object.values(RuleSetModel.DownloadFileTypesEnum); + public downloadTypesEnum = ['ORIGINAL', 'PREVIEW', 'REDACTED']; public reportTypesEnum = Object.values(RuleSetModel.ReportTypesEnum); constructor( diff --git a/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts b/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts index 2565e526e..b507078f1 100644 --- a/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts +++ b/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts @@ -3,7 +3,6 @@ import { CommonModule } from '@angular/common'; import { FileDropComponent } from './file-drop/file-drop.component'; import { OverlayModule } from '@angular/cdk/overlay'; import { UploadStatusOverlay } from './upload-status-overlay/upload-status-overlay.component'; -import { NgxDropzoneModule } from 'ngx-dropzone'; import { SharedModule } from '../shared/shared.module'; import { UploadDownloadDialogService } from './services/upload-download-dialog.service'; import { OverwriteFilesDialogComponent } from './dialogs/overwrite-files-dialog/overwrite-files-dialog.component'; diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index bb5454452..275d4df7b 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -1222,5 +1222,16 @@ "no-data": { "title": "No file attributes defined. Select a column from the left panel to start defining file attributes." } + }, + "download-type": { + "PREVIEW": "Preview PDF", + "ORIGINAL": "Original PDF", + "REDACTED": "Redacted PDF" + }, + "report-type": { + "WORD_SINGLE_FILE_APPENDIX_A1_TEMPLATE": "Justification Appendix A1", + "WORD_SINGLE_FILE_APPENDIX_A2_TEMPLATE": "Justification Appendix A2", + "EXCEL_MULTI_FILE": "Excel (for all)", + "EXCEL_SINGLE_FILE": "Excel (per all)" } }