diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index e398193a7..caccfd437 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -33,7 +33,6 @@ import { NgpSortModule } from 'ngp-sort-pipe'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatSelectModule } from '@angular/material/select'; import { MatSidenavModule } from '@angular/material/sidenav'; -import { FileDetailsDialogComponent } from './dialogs/file-details-dialog/file-details-dialog.component'; import { ToastrModule } from 'ngx-toastr'; import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } from '../environments/environment'; @@ -244,7 +243,6 @@ const matImports = [ ConfirmationDialogComponent, FilePreviewScreenComponent, PdfViewerComponent, - FileDetailsDialogComponent, AssignOwnerDialogComponent, FullPageLoadingIndicatorComponent, InitialsAvatarComponent, diff --git a/apps/red-ui/src/app/dialogs/dialog.service.ts b/apps/red-ui/src/app/dialogs/dialog.service.ts index c5d4f3bb2..2f16ddabc 100644 --- a/apps/red-ui/src/app/dialogs/dialog.service.ts +++ b/apps/red-ui/src/app/dialogs/dialog.service.ts @@ -36,14 +36,6 @@ export class DialogService { private readonly _manualRedactionControllerService: ManualRedactionControllerService ) {} - public openFileDetailsDialog($event: MouseEvent, file: FileStatus): MatDialogRef { - $event.stopPropagation(); - return this._dialog.open(FileDetailsDialogComponent, { - ...dialogConfig, - data: file - }); - } - public openDeleteFilesDialog($event: MouseEvent, projectId: string, fileIds: string[], cb?: Function): MatDialogRef { $event?.stopPropagation(); diff --git a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.html b/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.html deleted file mode 100644 index 28ca2dd54..000000000 --- a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.html +++ /dev/null @@ -1,32 +0,0 @@ -
-
- -
-
-
- {{ fileStatus.filename }} -
-
- {{ 'project-overview.file-listing.file-entry.status' | translate: fileStatus }} -
-
- {{ 'project-overview.file-listing.file-entry.number-of-pages' | translate: fileStatus }} -
-
- {{ 'project-overview.file-listing.file-entry.number-of-analyses' | translate: fileStatus }} -
-
- {{ 'project-overview.file-listing.file-entry.added' | translate: { added: fileStatus.added | date: 'short' } }} -
-
- {{ 'project-overview.file-listing.file-entry.last-updated' | translate: { lastUpdated: fileStatus.lastUpdated | date: 'short' } }} -
-
-
- -
- -
- - -
diff --git a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.scss b/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.scss deleted file mode 100644 index 93be7acbb..000000000 --- a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.scss +++ /dev/null @@ -1 +0,0 @@ -@import '../../../assets/styles/red-variables'; diff --git a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.ts b/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.ts deleted file mode 100644 index 428be1548..000000000 --- a/apps/red-ui/src/app/dialogs/file-details-dialog/file-details-dialog.component.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Component, Inject, OnInit } from '@angular/core'; -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; -import { AppStateService } from '../../state/app-state.service'; -import { FileStatusWrapper } from '../../screens/file/model/file-status.wrapper'; - -@Component({ - selector: 'redaction-file-details-dialog', - templateUrl: './file-details-dialog.component.html', - styleUrls: ['./file-details-dialog.component.scss'] -}) -export class FileDetailsDialogComponent implements OnInit { - constructor( - private readonly _appStateService: AppStateService, - public dialogRef: MatDialogRef, - @Inject(MAT_DIALOG_DATA) public fileStatus: FileStatusWrapper - ) {} - - ngOnInit(): void {} - - downloadRedactionReport() { - this._appStateService.downloadFileRedactionReport(this.fileStatus); - } -} diff --git a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts index b0e129025..109f76285 100644 --- a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts +++ b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts @@ -68,7 +68,7 @@ export class ManualAnnotationDialogComponent implements OnInit { for (const key of Object.keys(this._appStateService.dictionaryData)) { const dictionaryData = this._appStateService.dictionaryData[key]; - if (!dictionaryData.virtual) { + if (!dictionaryData.virtual && !(dictionaryData.type.indexOf('recommendation_') === 0)) { if (dictionaryData.hint) { this.hintDictionaries.push(dictionaryData); }