From 32fd58f2d52238d54e8ff3556f19a679843fe8f5 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 15 Dec 2020 14:03:59 +0200 Subject: [PATCH] reworked redaction report with template --- .../file-actions/file-actions.component.html | 245 ++++++++++-------- .../file-actions/file-actions.component.ts | 5 - apps/red-ui/src/app/dialogs/dialog.service.ts | 1 - .../project-listing-actions.component.ts | 2 +- .../project-overview-screen.component.html | 23 +- 5 files changed, 139 insertions(+), 137 deletions(-) diff --git a/apps/red-ui/src/app/common/file-actions/file-actions.component.html b/apps/red-ui/src/app/common/file-actions/file-actions.component.html index 4e5039e9e..141c9b2d0 100644 --- a/apps/red-ui/src/app/common/file-actions/file-actions.component.html +++ b/apps/red-ui/src/app/common/file-actions/file-actions.component.html @@ -1,114 +1,133 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/apps/red-ui/src/app/common/file-actions/file-actions.component.ts b/apps/red-ui/src/app/common/file-actions/file-actions.component.ts index 7dc1b5b41..4cd692f3f 100644 --- a/apps/red-ui/src/app/common/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/common/file-actions/file-actions.component.ts @@ -55,11 +55,6 @@ export class FileActionsComponent implements OnInit { }); } - downloadFileRedactionReport($event: MouseEvent, file: FileStatusWrapper) { - $event.stopPropagation(); - this.appStateService.downloadFileRedactionReport(file); - } - async assignReviewer($event: MouseEvent, file: FileStatusWrapper) { $event.stopPropagation(); await this._fileActionService.assignProjectReviewerFromOverview(file, () => this.actionPerformed.emit('assign-reviewer')); diff --git a/apps/red-ui/src/app/dialogs/dialog.service.ts b/apps/red-ui/src/app/dialogs/dialog.service.ts index 2f16ddabc..407cc386b 100644 --- a/apps/red-ui/src/app/dialogs/dialog.service.ts +++ b/apps/red-ui/src/app/dialogs/dialog.service.ts @@ -1,5 +1,4 @@ import { Injectable } from '@angular/core'; -import { FileDetailsDialogComponent } from './file-details-dialog/file-details-dialog.component'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { DictionaryControllerService, FileManagementControllerService, FileStatus, ManualRedactionControllerService, TypeValue } from '@redaction/red-ui-http'; import { ConfirmationDialogComponent, ConfirmationDialogInput } from './confirmation-dialog/confirmation-dialog.component'; diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-actions/project-listing-actions.component.ts b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-actions/project-listing-actions.component.ts index a5010c741..6e31ff32c 100644 --- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-actions/project-listing-actions.component.ts +++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-actions/project-listing-actions.component.ts @@ -16,7 +16,7 @@ import { DialogService } from '../../../dialogs/dialog.service'; export class ProjectListingActionsComponent implements OnInit { @Input() project: ProjectWrapper; @Output() actionPerformed = new EventEmitter(); - actionMenuOpen: boolean = false; + actionMenuOpen = false; constructor( public readonly permissionsService: PermissionsService, diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html index ad724dac4..5dd77925d 100644 --- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html +++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.html @@ -242,23 +242,12 @@ ]" > -
- - -
+