@@ -349,8 +355,7 @@
>
+ >
{{ 'project-overview.legend.contains-hints.label' | translate }}
diff --git a/apps/red-ui/src/app/state/app-state.service.ts b/apps/red-ui/src/app/state/app-state.service.ts
index 1d7cbe942..0a5afd2c3 100644
--- a/apps/red-ui/src/app/state/app-state.service.ts
+++ b/apps/red-ui/src/app/state/app-state.service.ts
@@ -12,7 +12,7 @@ import {
import { NotificationService, NotificationType } from '../notification/notification.service';
import { TranslateService } from '@ngx-translate/core';
import { Router } from '@angular/router';
-import { UserService } from '../user/user.service';
+import { UserService, UserWrapper } from '../user/user.service';
import { forkJoin, interval } from 'rxjs';
import { tap } from 'rxjs/operators';
import { download } from '../utils/file-download-utils';
@@ -408,4 +408,8 @@ export class AppStateService {
const data = this._dictionaryData[key];
return data ? data : this._dictionaryData['default'];
}
+
+ isManagerAndOwner(user: UserWrapper, project: Project) {
+ return user.isManager && project.ownerId === user.id;
+ }
}
diff --git a/libs/red-ui-http/src/lib/model/fileStatus.ts b/libs/red-ui-http/src/lib/model/fileStatus.ts
index e7688476f..2fbac0e3a 100644
--- a/libs/red-ui-http/src/lib/model/fileStatus.ts
+++ b/libs/red-ui-http/src/lib/model/fileStatus.ts
@@ -18,6 +18,10 @@ export interface FileStatus {
* Date and time when the file was added to the system.
*/
added?: string;
+ /**
+ * Shows if all manual changes have been applied by a reanalysis.
+ */
+ allManualRedactionsApplied?: boolean;
/**
* The current reviewer's (if any) user id.
*/
@@ -30,6 +34,18 @@ export interface FileStatus {
* The file's name.
*/
filename?: string;
+ /**
+ * Shows if any hints were found during the analysis.
+ */
+ hasHints?: boolean;
+ /**
+ * Shows if any redactions were found during the analysis.
+ */
+ hasRedactions?: boolean;
+ /**
+ * Shows if any requests were found during the analysis.
+ */
+ hasRequests?: boolean;
/**
* Date and time when the file was last updated.
*/
@@ -51,7 +67,6 @@ export interface FileStatus {
*/
status?: FileStatus.StatusEnum;
}
-
export namespace FileStatus {
export type StatusEnum =
| 'UNPROCESSED'