From dcb65e0b059797e3e5a846c23ef7c117709bf374 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Wed, 4 Nov 2020 00:45:45 +0200 Subject: [PATCH] remove requests --- .../annotation-icon.component.html | 5 ++- .../file-preview-screen.component.html | 8 +++- .../file-preview-screen.component.ts | 6 ++- .../screens/file/model/annotation.wrapper.ts | 37 ++++++++++++++----- .../app/screens/file/model/file-data.model.ts | 7 ++-- .../file/service/annotation-draw.service.ts | 2 +- .../red-ui/src/app/state/app-state.service.ts | 16 +++++--- apps/red-ui/src/assets/i18n/en.json | 1 + 8 files changed, 56 insertions(+), 26 deletions(-) diff --git a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html index b42260938..44a90abcb 100644 --- a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html +++ b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html @@ -1,3 +1,4 @@ -
- {{ typeValue.type[0] }} +
+ {{ (typeValue?.type)[0] }} +
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 72fcc37e2..6f796120d 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 @@ -178,7 +178,8 @@ (click)="openAcceptSuggestionMenu($event, annotation)" *ngIf=" appStateService.isActiveProjectOwnerAndManager && - annotation.superType === 'request' + (annotation.superType === 'request' || + annotation.superType === 'request-remove') " [class.active]="isAnnotationMenuOpen(annotation)" [matMenuTriggerFor]="menu" @@ -219,7 +220,10 @@