{
+ const ref = this._dialog.open(ConfirmDeleteFileAttributeDialogComponent, {
+ ...dialogConfig,
+ data: { fileAttribute, ruleSetId },
+ autoFocus: true
+ });
+
+ ref.afterClosed().subscribe((result) => {
+ if (result && cb) {
+ cb(result);
+ }
+ });
+
+ return ref;
+ }
+
openRemoveAnnotationModal($event: MouseEvent, annotation: AnnotationWrapper, callback: () => void) {
$event?.stopPropagation();
diff --git a/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.html b/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.html
index f3fa5afba..633bf9e2a 100644
--- a/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.html
+++ b/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.html
@@ -61,9 +61,9 @@
column="name"
>
-
+
-
+
@@ -83,11 +83,10 @@
{{ attribute.name }}
-
- -
-
-
-
+
+
+
+
div:not(.scrollbar-placeholder) {
@@ -47,7 +47,7 @@ redaction-table-col-name::ng-deep {
&.has-scrollbar:hover {
::ng-deep.cdk-virtual-scroll-content-wrapper {
- grid-template-columns: auto 1fr 1fr 1fr 1fr;
+ grid-template-columns: auto 1fr 1fr 3fr;
}
}
}
diff --git a/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.ts b/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.ts
index 7482a8be9..15cf578f9 100644
--- a/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.ts
+++ b/apps/red-ui/src/app/screens/admin/file-attributes-listing-screen/file-attributes-listing-screen.component.ts
@@ -81,6 +81,13 @@ export class FileAttributesListingScreenComponent implements OnInit {
});
}
+ public openConfirmDeleteAttributeDialog($event: MouseEvent, fileAttribute?: FileAttribute) {
+ $event.stopPropagation();
+ this._dialogService.openConfirmDeleteFileAttributeDialog(fileAttribute, this._appStateService.activeRuleSetId, async () => {
+ await this._loadData();
+ });
+ }
+
public toggleAttributeSelected($event: MouseEvent, attribute: FileAttribute) {
$event.stopPropagation();
const idx = this.selectedFileAttributeIds.indexOf(attribute.id);
diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json
index db7e1ef41..c0b0643b4 100644
--- a/apps/red-ui/src/assets/i18n/en.json
+++ b/apps/red-ui/src/assets/i18n/en.json
@@ -715,7 +715,7 @@
"table-col-names": {
"name": "Name",
"created-by": "Created by",
- "permissions": "Permissions"
+ "read-only": "Read-Only"
},
"no-data": "No file attributes.",
"read-only": "Read-only",
@@ -724,6 +724,14 @@
"delete": "Delete attribute"
}
},
+ "confirm-delete-file-attribute": {
+ "title": "Delete {{name}}",
+ "warning": "Warning: this cannot be undone!",
+ "delete": "Delete Attribute",
+ "cancel": "Keep Attribute",
+ "checkbox-1": "All documents it is used on will be impacted",
+ "checkbox-2": "All inputted details on the documents will be lost"
+ },
"user-listing": {
"table-header": {
"title": "{{length}} users"