From e9ee79f16af7cb334b1e801e7b1d55bc1b69225d Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Fri, 13 Aug 2021 13:16:01 +0300 Subject: [PATCH] response --- .../app/components/notifications/notifications.component.ts | 6 +++--- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 3 --- .../dictionary-listing-screen.component.ts | 1 - .../components/file-actions/file-actions.component.ts | 1 + .../file-preview-screen/file-preview-screen.component.ts | 1 - .../app/modules/dossier/services/pdf-viewer-data.service.ts | 4 ---- 6 files changed, 4 insertions(+), 12 deletions(-) diff --git a/apps/red-ui/src/app/components/notifications/notifications.component.ts b/apps/red-ui/src/app/components/notifications/notifications.component.ts index 90582dba8..54ee4bd54 100644 --- a/apps/red-ui/src/app/components/notifications/notifications.component.ts +++ b/apps/red-ui/src/app/components/notifications/notifications.component.ts @@ -48,9 +48,9 @@ export class NotificationsComponent { this._groupNotifications(); // TODO group notifications by date using same date-format as comments in workload // - this._notificationControllerService.getNotifications(false).subscribe(response => { - console.log(response); - }); + // this._notificationControllerService.getNotifications(false).subscribe(response => { + // console.log(response); + // }); } get hasUnread() { diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 048b570b5..5d39bce3c 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -186,9 +186,6 @@ export class AnnotationWrapper { } static fromData(redactionLogEntry?: RedactionLogEntryWrapper) { - if (redactionLogEntry.status === 'REQUESTED') { - console.log(redactionLogEntry); - } const annotationWrapper = new AnnotationWrapper(); annotationWrapper._origin = redactionLogEntry; diff --git a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.ts index 763b489b4..f9eee1500 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.ts @@ -122,7 +122,6 @@ export class DictionaryListingScreenComponent extends ListingComponent (dict.entries = values.entries ?? [])), catchError(() => { - console.log('error'); dict.entries = []; return of({}); }) diff --git a/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.ts b/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.ts index cf4f45588..87c060cba 100644 --- a/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.ts @@ -152,6 +152,7 @@ export class FileActionsComponent extends AutoUnsubscribe implements OnInit, OnD } setFileUnderApproval($event: MouseEvent) { + $event.stopPropagation(); if (this.appStateService.activeDossier.approverIds.length > 1) { this._fileActionService.assignFile('approver', $event, this.fileStatus, () => this.reloadDossiers('assign-reviewer'), true); } else { diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts index a3304bc02..f85905ef5 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts @@ -316,7 +316,6 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni openManualAnnotationDialog(entryWrapper: ManualRedactionEntryWrapper) { this._ngZone.run(() => { - console.log({ entryWrapper }); this.dialogRef = this._dialogService.openDialog( 'manualAnnotation', null, diff --git a/apps/red-ui/src/app/modules/dossier/services/pdf-viewer-data.service.ts b/apps/red-ui/src/app/modules/dossier/services/pdf-viewer-data.service.ts index ca4d5c069..ee33a98b3 100644 --- a/apps/red-ui/src/app/modules/dossier/services/pdf-viewer-data.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/pdf-viewer-data.service.ts @@ -34,10 +34,6 @@ export class PdfViewerDataService { const dossierId = this._appStateService.activeDossierId; const fileId = this._appStateService.activeFileId; - this._man.getManualRedaction(dossierId, fileId).subscribe(mr => { - console.log(mr); - }); - const file$ = this.downloadOriginalFile(this._appStateService.activeFile); const reactionLog$ = this._redactionLogControllerService.getRedactionLog(dossierId, fileId).pipe(catchError(() => of({}))); const redactionChangeLog$ = this._redactionLogControllerService