UI adjustments

This commit is contained in:
Timo 2020-11-26 09:50:17 +02:00
parent d374bb4483
commit cde3734844
3 changed files with 12 additions and 3 deletions

View File

@ -7,13 +7,13 @@
.breadcrumb { .breadcrumb {
text-decoration: none; text-decoration: none;
color: $grey-7; color: $grey-1;
font-weight: 600; font-weight: 600;
width: fit-content; width: fit-content;
white-space: nowrap; white-space: nowrap;
&:last-child { &:last-child {
color: $accent; color: $primary;
@include line-clamp(1); @include line-clamp(1);
} }

View File

@ -195,6 +195,9 @@ export class AnnotationWrapper {
private static createContent(entry: any) { private static createContent(entry: any) {
let content = ''; let content = '';
if (entry.matchedRule) {
content += 'Rule ' + entry.matchedRule + ' matched \n\n';
}
if (entry.reason) { if (entry.reason) {
content += entry.reason + '\n\n'; content += entry.reason + '\n\n';
} }

View File

@ -17,10 +17,11 @@ export interface RedactionLogEntry {
id?: string; id?: string;
legalBasis?: string; legalBasis?: string;
manual?: boolean; manual?: boolean;
manualRedactionType?: RedactionLogEntry.ManualRedactionTypeEnum;
matchedRule?: number;
positions?: Array<Rectangle>; positions?: Array<Rectangle>;
reason?: string; reason?: string;
redacted?: boolean; redacted?: boolean;
manualRedactionType?: string;
section?: string; section?: string;
sectionNumber?: number; sectionNumber?: number;
status?: RedactionLogEntry.StatusEnum; status?: RedactionLogEntry.StatusEnum;
@ -28,6 +29,11 @@ export interface RedactionLogEntry {
value?: string; value?: string;
} }
export namespace RedactionLogEntry { export namespace RedactionLogEntry {
export type ManualRedactionTypeEnum = 'ADD' | 'REMOVE';
export const ManualRedactionTypeEnum = {
ADD: 'ADD' as ManualRedactionTypeEnum,
REMOVE: 'REMOVE' as ManualRedactionTypeEnum
};
export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED'; export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED';
export const StatusEnum = { export const StatusEnum = {
REQUESTED: 'REQUESTED' as StatusEnum, REQUESTED: 'REQUESTED' as StatusEnum,