Pull request #69: No annotation icon

Merge in RED/ui from RED-775 to master

* commit 'bf18e3d92e4e38602dc6f75a916373e63d53dde1':
  No annotation icon
This commit is contained in:
Timo Bejan 2020-12-14 17:05:19 +01:00
commit a8621b4e06
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,3 @@
<div [class.hint]="isHint" [class.request]="isRequest" [style.background-color]="color || dictType.hexColor" class="icon">
<div [class.hint]="isHint" [class.request]="isRequest" [style.background-color]="color || dictType.hexColor" class="icon" [class.none]="type === 'none'">
<span>{{ label || dictType.label.charAt(0) }}</span>
</div>

View File

@ -32,3 +32,7 @@
.ignore {
background-color: $grey-5;
}
.none {
color: $accent;
}

View File

@ -8,7 +8,7 @@ import { TypeValue } from '@redaction/red-ui-http';
})
export class AnnotationIconComponent {
@Input() color: string;
@Input() type: 'square' | 'rhombus' | 'circle';
@Input() type: 'square' | 'rhombus' | 'circle' | 'none';
@Input() label: string;
@Input() dictType: TypeValue;

View File

@ -27,4 +27,6 @@
<redaction-annotation-icon *ngIf="filter.key === 'declined-suggestion'" type="rhombus" label="S" [color]="dictionaryColor"></redaction-annotation-icon>
<redaction-annotation-icon *ngIf="filter.key === 'none'" label="-" color="transparent" type="none"></redaction-annotation-icon>
{{ filter.label | translate }}