Changes on redaction colors
This commit is contained in:
parent
bf7f3f1923
commit
21c9c83064
@ -55,7 +55,7 @@ export class DefaultColorsScreenComponent extends ListingComponent<ListItem> imp
|
||||
await this._loadColors();
|
||||
}
|
||||
|
||||
openEditColorDialog($event: any, color: { key: DefaultColorType | string; value: string }) {
|
||||
openEditColorDialog($event: MouseEvent, color: { key: DefaultColorType | string; value: string }) {
|
||||
this._dialogService.openDialog(
|
||||
'editColor',
|
||||
$event,
|
||||
|
||||
@ -40,7 +40,7 @@ export class FileWorkloadComponent {
|
||||
}
|
||||
|
||||
get redactionColor() {
|
||||
return this._getDictionaryColor('redaction');
|
||||
return this._getDictionaryColor('dossier_redaction');
|
||||
}
|
||||
|
||||
private _getDictionaryColor(type: string) {
|
||||
|
||||
@ -23,6 +23,6 @@ export class DossierWorkloadColumnComponent {
|
||||
}
|
||||
|
||||
get redactionColor() {
|
||||
return this._appStateService.getDictionaryColor('redaction', this.dossier.dossierTemplateId);
|
||||
return this._appStateService.getDictionaryColor('dossier_redaction', this.dossier.dossierTemplateId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -498,7 +498,7 @@
|
||||
"defaultColor": "Default Color",
|
||||
"dictionaryRequestColor": "Dictionary Request",
|
||||
"ignoredHintColor": "Ignored Hint",
|
||||
"manualRedactionColor": "Manual Redaction",
|
||||
"manualRedactionColor": "Redaction Color",
|
||||
"notRedacted": "Skipped",
|
||||
"previewColor": "Preview",
|
||||
"requestAdd": "Request Add",
|
||||
|
||||
@ -18,6 +18,11 @@ export class DossierTemplateStats implements IDossierTemplateStats {
|
||||
}
|
||||
|
||||
dictionarySummary(type: string): DictionarySummary | undefined {
|
||||
return this._dictionarySummaryMap.get(type);
|
||||
const defaultValue: DictionarySummary = { entriesCount: 0, id: type, name: type, type };
|
||||
if (!this._dictionarySummaryMap.get(type)) {
|
||||
// TODO
|
||||
console.error(`Missing type ${type}`);
|
||||
}
|
||||
return this._dictionarySummaryMap.get(type) || defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user