From 5f95429427c2a305de80dac5166d24a2a236647f Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Fri, 6 Nov 2020 21:10:42 +0200 Subject: [PATCH] fixed suggestion --- .../annotation-icon/annotation-icon.component.html | 3 +-- .../annotation-icon/annotation-icon.component.ts | 4 +++- .../needs-work-badge/needs-work-badge.component.html | 2 +- .../file-preview-screen.component.html | 8 ++++---- .../src/app/screens/file/model/annotation.wrapper.ts | 6 +++--- .../screens/file/service/annotation-draw.service.ts | 2 +- .../project-details/project-details.component.html | 2 +- apps/red-ui/src/app/state/app-state.service.ts | 12 ++++++------ 8 files changed, 20 insertions(+), 19 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 e66fe0a43..0cd9c7b60 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,9 +1,8 @@
{{ (typeValue?.type)[0] }} -
diff --git a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts index ec379aa5e..6eff84630 100644 --- a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts +++ b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts @@ -9,10 +9,12 @@ import { TypeValue } from '@redaction/red-ui-http'; export class AnnotationIconComponent implements OnInit { @Input() typeValue: TypeValue; + label: string; + constructor() {} ngOnInit(): void { - if (this.typeValue?.type === 'request') { + if (this.typeValue?.type === 'suggestion') { const styleSheet = document.styleSheets[0]; styleSheet.insertRule( `.request:after { border-top-color: ${this.typeValue.hexColor} !important; }`, diff --git a/apps/red-ui/src/app/screens/common/needs-work-badge/needs-work-badge.component.html b/apps/red-ui/src/app/screens/common/needs-work-badge/needs-work-badge.component.html index b897522d6..84815eee0 100644 --- a/apps/red-ui/src/app/screens/common/needs-work-badge/needs-work-badge.component.html +++ b/apps/red-ui/src/app/screens/common/needs-work-badge/needs-work-badge.component.html @@ -9,6 +9,6 @@ > 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 626b61059..dd5be7dc0 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 @@ -210,8 +210,8 @@ (click)="openAcceptSuggestionMenu($event, annotation)" *ngIf=" appStateService.isActiveProjectOwnerAndManager && - (annotation.superType === 'request' || - annotation.superType === 'request-remove') + (annotation.superType === 'suggestion' || + annotation.superType === 'suggestion-remove') " [class.active]="isAnnotationMenuOpen(annotation)" [matMenuTriggerFor]="menu" @@ -253,8 +253,8 @@