From 2ed47d9be567ba87e203c0196536237f42e12df2 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Wed, 7 Apr 2021 00:07:34 +0300 Subject: [PATCH] add translations, fix colors --- .../disabled-for-redaction.component.ts | 2 +- .../file-actions/file-actions.component.html | 2 ++ .../red-ui/src/app/modules/projects/projects.module.ts | 2 -- .../project-overview-screen.component.scss | 10 ++++++++-- apps/red-ui/src/assets/i18n/en.json | 7 ++++++- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/projects/components/disabled-for-redaction/disabled-for-redaction.component.ts b/apps/red-ui/src/app/modules/projects/components/disabled-for-redaction/disabled-for-redaction.component.ts index 9904c1acf..e3fc293e5 100644 --- a/apps/red-ui/src/app/modules/projects/components/disabled-for-redaction/disabled-for-redaction.component.ts +++ b/apps/red-ui/src/app/modules/projects/components/disabled-for-redaction/disabled-for-redaction.component.ts @@ -5,7 +5,7 @@ import { Component } from '@angular/core'; template: "
\n" + ' \n' + - "

Redaction is disabled for this document.

\n" + + "

{{'file-preview.tabs.is-excluded' | translate}}

\n" + '
', styleUrls: ['./disabled-for-redaction.component.scss'] }) diff --git a/apps/red-ui/src/app/modules/projects/components/file-actions/file-actions.component.html b/apps/red-ui/src/app/modules/projects/components/file-actions/file-actions.component.html index 99b1c2098..e80e94859 100644 --- a/apps/red-ui/src/app/modules/projects/components/file-actions/file-actions.component.html +++ b/apps/red-ui/src/app/modules/projects/components/file-actions/file-actions.component.html @@ -141,6 +141,8 @@ diff --git a/apps/red-ui/src/app/modules/projects/projects.module.ts b/apps/red-ui/src/app/modules/projects/projects.module.ts index d19aefa73..b119686c6 100644 --- a/apps/red-ui/src/app/modules/projects/projects.module.ts +++ b/apps/red-ui/src/app/modules/projects/projects.module.ts @@ -54,11 +54,9 @@ const components = [ ProjectDetailsComponent, PageIndicatorComponent, NeedsWorkBadgeComponent, - ProjectListingEmptyComponent, AnnotationActionsComponent, ProjectListingEmptyComponent, ProjectListingDetailsComponent, - FileActionsComponent, TypeAnnotationIconComponent, TypeFilterComponent, ProjectOverviewBulkActionsComponent, diff --git a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss index 860ecf149..5dbd733dc 100644 --- a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss +++ b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss @@ -112,6 +112,12 @@ cdk-virtual-scroll-viewport { } .disabled { - background-color: #F4F5F7; - color: #9398A0; + > div { + background-color: $grey-2; + color: $grey-7; + } + + redaction-file-actions { + color: initial; + } } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index d196e3a41..433c8be3d 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -306,7 +306,12 @@ }, "annotations": { "label": "Workload" - } + }, + "is-excluded": "Redaction is disabled for this document." + }, + "toggle-analysis": { + "enable": "Enable for redaction", + "disable": "Disable redaction" }, "reviewer": "Assigned to", "unassigned": "Unassigned",