No annotation icon

This commit is contained in:
Adina Țeudan 2020-12-14 12:02:23 +02:00
parent 2c16124011
commit bf18e3d92e
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 }}