minor updates

This commit is contained in:
Timo Bejan 2021-08-13 09:40:12 +03:00
parent e449d49c8c
commit e3e906bffe
8 changed files with 18 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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();

View File

@ -1005,7 +1005,7 @@
"test-connection": "Test Connection"
},
"app-name": {
"label": "Application Name",
"label": "Environment",
"placeholder": "RedactManager"
},
"form": {

View File

@ -13,4 +13,5 @@
export interface GeneralConfigurationModel {
forgotPasswordFunctionEnabled?: boolean;
displayName?: string;
auxiliaryName?: string;
}