diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html index c2f6df05c..2fc9d6f53 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html @@ -123,6 +123,20 @@ + + + + + +
+ + + + + + + + + + + + + + + +
diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss index e3a102101..5591d34bd 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss @@ -173,6 +173,18 @@ .all-caps-label { margin-right: 10px; } + + redaction-circle-button { + margin-right: 2px; + } + + .separator { + margin-left: 14px; + background-color: $separator; + width: 1px; + height: 30px; + margin-right: 16px; + } } cdk-virtual-scroll-viewport { diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts index 345bea46d..e0daa4fb5 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts @@ -177,6 +177,12 @@ export class FileAttributesCsvImportDialogComponent implements OnInit { this.selectedFields = []; } + public setAttributeForSelection(attribute: string, value: any) { + for (const csvColumn of this.selectedFields) { + this.activeFields.find((f) => f.csvColumn === csvColumn)[attribute] = value; + } + } + public async save() { await this._fileAttributesControllerService .addOrUpdateFileAttributesConfig( diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index c1e6f5a9e..0fde8352e 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -1135,7 +1135,14 @@ "table-header": { "title": "{{length}} file attributes", "actions": { - "remove-selected": "Remove Selected" + "remove-selected": "Remove Selected", + "read-only": "Make Read-only", + "enable-read-only": "Enable Read-only for all attributes", + "disable-read-only": "Disable Read-only for all attributes", + "display": "Toggle Display", + "enable-display": "Enable Display for all attributes", + "disable-display": "Disable Display for all attributes", + "type": "Type" } }, "file": "File:", diff --git a/apps/red-ui/src/assets/styles/red-menu.scss b/apps/red-ui/src/assets/styles/red-menu.scss index 31745e2f0..d515f69b3 100644 --- a/apps/red-ui/src/assets/styles/red-menu.scss +++ b/apps/red-ui/src/assets/styles/red-menu.scss @@ -12,6 +12,10 @@ padding-bottom: 24px; } + &.no-padding-bottom .mat-menu-content:not(:empty) { + padding-bottom: 8px; + } + .mat-menu-item { font-size: 13px; color: $accent;