add translations, fix colors

This commit is contained in:
Dan Percic 2021-04-07 00:07:34 +03:00
parent 8e044a9128
commit 2ed47d9be5
5 changed files with 17 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import { Component } from '@angular/core';
template:
"<div class='section flex-align-items-center'>\n" +
' <mat-icon [svgIcon]="\'red:needs-work\'"></mat-icon>\n' +
" <p class='heading-l'>Redaction is disabled for this document.</p>\n" +
" <p class='heading-l'>{{'file-preview.tabs.is-excluded' | translate}}</p>\n" +
'</div>',
styleUrls: ['./disabled-for-redaction.component.scss']
})

View File

@ -141,6 +141,8 @@
<mat-slide-toggle
(click)='toggleAnalysis($event)'
[checked]='!fileStatus.isExcluded'
[matTooltip]="(fileStatus.isExcluded ? 'file-preview.toggle-analysis.enable' : 'file-preview.toggle-analysis.disable') | translate"
[matTooltipPosition]='tooltipPosition'
color='primary'
>
</mat-slide-toggle>

View File

@ -54,11 +54,9 @@ const components = [
ProjectDetailsComponent,
PageIndicatorComponent,
NeedsWorkBadgeComponent,
ProjectListingEmptyComponent,
AnnotationActionsComponent,
ProjectListingEmptyComponent,
ProjectListingDetailsComponent,
FileActionsComponent,
TypeAnnotationIconComponent,
TypeFilterComponent,
ProjectOverviewBulkActionsComponent,

View File

@ -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;
}
}

View File

@ -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",