minor updates
This commit is contained in:
parent
e449d49c8c
commit
e3e906bffe
@ -58,7 +58,7 @@ export class BaseScreenComponent {
|
||||
{
|
||||
name: _('top-bar.navigation-items.my-account.children.trash'),
|
||||
routerLink: '/main/admin/trash',
|
||||
show: this.currentUser.isManager || this.currentUser.isUserAdmin
|
||||
show: this.currentUser.isManager
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -40,10 +40,9 @@ export class AnnotationPermissions {
|
||||
|
||||
for (const annotation of annotations) {
|
||||
const permissions: AnnotationPermissions = new AnnotationPermissions();
|
||||
permissions.canUndo = (!isApprover && annotation.isSuggestion) || (isApprover && annotation.isUndoableActionForApprover);
|
||||
|
||||
permissions.canForceRedaction = annotation.isSkipped && !permissions.canUndo;
|
||||
permissions.canUndo = !isApprover && annotation.isSuggestion;
|
||||
|
||||
permissions.canForceRedaction = annotation.isSkipped;
|
||||
permissions.canAcceptRecommendation = annotation.isRecommendation;
|
||||
|
||||
permissions.canMarkAsFalsePositive = annotation.canBeMarkedAsFalsePositive && !annotation.force;
|
||||
@ -55,10 +54,7 @@ export class AnnotationPermissions {
|
||||
(annotation.isSkipped && annotation.isModifyDictionary);
|
||||
|
||||
permissions.canAcceptSuggestion = isApprover && (annotation.isSuggestion || annotation.isDeclinedSuggestion);
|
||||
permissions.canRejectSuggestion =
|
||||
isApprover &&
|
||||
(annotation.isSuggestion ||
|
||||
(annotation.isReadyForAnalysis && !permissions.canUndo && annotation.superType !== 'pending-analysis'));
|
||||
permissions.canRejectSuggestion = isApprover && annotation.isSuggestion;
|
||||
|
||||
permissions.canChangeLegalBasis = !annotation.isManualRedaction && annotation.isRedacted;
|
||||
|
||||
|
||||
@ -271,6 +271,11 @@ export class AnnotationWrapper {
|
||||
if (redactionLogEntryWrapper.manualRedactionType === 'RECATEGORIZE') {
|
||||
if (redactionLogEntryWrapper.status === 'REQUESTED') {
|
||||
annotationWrapper.superType = 'suggestion-recategorize-image';
|
||||
return;
|
||||
}
|
||||
if (redactionLogEntryWrapper.status === 'APPROVED') {
|
||||
annotationWrapper.superType = annotationWrapper.redaction ? 'redaction' : annotationWrapper.hint ? 'hint' : 'skipped';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -32,8 +32,8 @@
|
||||
<div class="red-input-group">
|
||||
<label translate="general-config-screen.app-name.label"></label>
|
||||
<input
|
||||
formControlName="displayName"
|
||||
name="displayName"
|
||||
formControlName="auxiliaryName"
|
||||
name="auxiliaryName"
|
||||
placeholder="{{ 'general-config-screen.app-name.placeholder' | translate }}"
|
||||
type="text"
|
||||
/>
|
||||
|
||||
@ -43,7 +43,7 @@ export class GeneralConfigScreenComponent extends AutoUnsubscribe implements OnI
|
||||
|
||||
this.configForm = this._formBuilder.group({
|
||||
forgotPasswordFunctionEnabled: [false],
|
||||
displayName: [undefined]
|
||||
auxiliaryName: [undefined]
|
||||
});
|
||||
|
||||
this.smtpForm = this._formBuilder.group({
|
||||
@ -107,10 +107,10 @@ export class GeneralConfigScreenComponent extends AutoUnsubscribe implements OnI
|
||||
this._loadingService.start();
|
||||
|
||||
const configFormValues = this.configForm.getRawValue();
|
||||
configFormValues.displayName = configFormValues.displayName || 'RedactManager';
|
||||
|
||||
await this._generalSettingsControllerService.updateGeneralConfigurations(configFormValues).toPromise();
|
||||
this._appConfigService.updateDisplayName(configFormValues.displayName);
|
||||
this._initialGeneralConfiguration = await this._generalSettingsControllerService.getGeneralConfigurations().toPromise();
|
||||
this._appConfigService.updateDisplayName(this._initialGeneralConfiguration.displayName);
|
||||
this._loadingService.stop();
|
||||
}
|
||||
|
||||
|
||||
@ -88,7 +88,8 @@ export class ReportsScreenComponent implements OnInit {
|
||||
if (this._isValidFile(file)) {
|
||||
await this._reportTemplateService.uploadTemplateForm(this._appStateService.activeDossierTemplateId, false, file).toPromise();
|
||||
if (this._isExcelFile(file)) {
|
||||
// await this._reportTemplateService.uploadTemplateForm(this._appStateService.activeDossierTemplateId, true, file).toPromise();
|
||||
// await this._reportTemplateService.
|
||||
// uploadTemplateForm(this._appStateService.activeDossierTemplateId, true, file).toPromise();
|
||||
}
|
||||
this._fileInput.nativeElement.value = null;
|
||||
await this._loadReportTemplates();
|
||||
|
||||
@ -1005,7 +1005,7 @@
|
||||
"test-connection": "Test Connection"
|
||||
},
|
||||
"app-name": {
|
||||
"label": "Application Name",
|
||||
"label": "Environment",
|
||||
"placeholder": "RedactManager"
|
||||
},
|
||||
"form": {
|
||||
|
||||
@ -13,4 +13,5 @@
|
||||
export interface GeneralConfigurationModel {
|
||||
forgotPasswordFunctionEnabled?: boolean;
|
||||
displayName?: string;
|
||||
auxiliaryName?: string;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user