From 8b5d3ee0f6bc8dff43f6f993074b63548fee5620 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Fri, 30 Oct 2020 21:21:42 +0200 Subject: [PATCH] work in progress performance --- apps/red-ui/src/app/dialogs/dialog.service.ts | 2 - .../file-preview-screen.component.html | 2 +- .../file-preview-screen.component.ts | 7 +-- .../screens/file/model/annotation.wrapper.ts | 5 ++- .../file/service/file-action.service.ts | 44 +++++++++++++++++++ .../project-overview-screen.component.html | 2 +- .../project-overview-screen.component.ts | 9 ++-- .../red-ui/src/app/state/app-state.service.ts | 4 ++ apps/red-ui/src/app/utils/annotation-utils.ts | 6 ++- 9 files changed, 68 insertions(+), 13 deletions(-) create mode 100644 apps/red-ui/src/app/screens/file/service/file-action.service.ts diff --git a/apps/red-ui/src/app/dialogs/dialog.service.ts b/apps/red-ui/src/app/dialogs/dialog.service.ts index d4798b319..5f049d3eb 100644 --- a/apps/red-ui/src/app/dialogs/dialog.service.ts +++ b/apps/red-ui/src/app/dialogs/dialog.service.ts @@ -183,11 +183,9 @@ export class DialogService { } public openAssignFileReviewerDialog( - $event: MouseEvent, file: FileStatus, cb?: Function ): MatDialogRef { - $event.stopPropagation(); const ref = this._dialog.open(AssignOwnerDialogComponent, { ...dialogConfig, data: { type: 'file', file: file } diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html index cfd9dd2cf..4aa53892e 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html @@ -24,7 +24,7 @@