diff --git a/apps/red-ui/src/app/models/file/file-status.wrapper.ts b/apps/red-ui/src/app/models/file/file-status.wrapper.ts
index 2711b3195..6d4619ec8 100644
--- a/apps/red-ui/src/app/models/file/file-status.wrapper.ts
+++ b/apps/red-ui/src/app/models/file/file-status.wrapper.ts
@@ -27,7 +27,6 @@ export class FileStatusWrapper implements FileStatus {
readonly hasHints = this.fileStatus.hasHints;
readonly hasImages = this.fileStatus.hasImages;
readonly hasRedactions = this.fileStatus.hasRedactions;
- readonly hasRequests = this.fileStatus.hasRequests;
readonly hasUpdates = this.fileStatus.hasUpdates;
readonly lastOCRTime = this.fileStatus.lastOCRTime;
readonly lastProcessed = this.fileStatus.lastProcessed;
@@ -41,6 +40,7 @@ export class FileStatusWrapper implements FileStatus {
readonly status = this._status;
readonly uploader = this.fileStatus.uploader;
readonly excludedPages = this.fileStatus.excludedPages;
+ readonly hasSuggestions = this.fileStatus.hasSuggestions;
primaryAttribute: string;
@@ -64,9 +64,8 @@ export class FileStatusWrapper implements FileStatus {
readonly pages = this._pages;
readonly cacheIdentifier = btoa(this.lastUploaded + this.lastOCRTime);
- readonly hasUnappliedSuggestions = !this.allManualRedactionsApplied;
readonly hintsOnly = this.hasHints && !this.hasRedactions;
- readonly hasNone = !this.hasRedactions && !this.hasHints && !this.hasRequests;
+ readonly hasNone = !this.hasRedactions && !this.hasHints && !this.hasSuggestions;
readonly isError = this.status === FileStatus.StatusEnum.ERROR;
readonly isProcessing = processingStatuses.includes(this.status);
@@ -74,7 +73,7 @@ export class FileStatusWrapper implements FileStatus {
readonly isPending = this.status === FileStatus.StatusEnum.UNPROCESSED;
readonly isUnderReview = this.status === FileStatus.StatusEnum.UNDERREVIEW;
readonly isUnderApproval = this.status === FileStatus.StatusEnum.UNDERAPPROVAL;
- readonly canBeApproved = !this.analysisRequired && !this.hasRequests;
+ readonly canBeApproved = !this.analysisRequired && !this.hasSuggestions;
readonly canBeOpened = !this.isError && !this.isPending;
readonly isWorkable = !this.isProcessing && this.canBeOpened;
readonly canBeOCRed = !this.excluded && !this.lastOCRTime && ['UNASSIGNED', 'UNDER_REVIEW', 'UNDER_APPROVAL'].includes(this.status);
diff --git a/apps/red-ui/src/app/modules/dossier/components/needs-work-badge/needs-work-badge.component.html b/apps/red-ui/src/app/modules/dossier/components/needs-work-badge/needs-work-badge.component.html
index dbf5b95fa..26af32665 100644
--- a/apps/red-ui/src/app/modules/dossier/components/needs-work-badge/needs-work-badge.component.html
+++ b/apps/red-ui/src/app/modules/dossier/components/needs-work-badge/needs-work-badge.component.html
@@ -10,7 +10,7 @@
{
this.hintsOnly = this.hintsOnly || f.hintsOnly;
this.hasRedactions = this.hasRedactions || f.hasRedactions;
- this.hasRequests = this.hasRequests || f.hasRequests;
+ this.hasSuggestions = this.hasSuggestions || f.hasSuggestions;
this.allFilesApproved = this.allFilesApproved && f.isApproved;
this.totalNumberOfPages += f.numberOfPages;
this.hasPendingOrProcessing = this.hasPendingOrProcessing || f.isPending || f.isProcessing;
});
- this.hasNone = !this.hasRequests && !this.hasRedactions && !this.hintsOnly;
+ this.hasNone = !this.hasSuggestions && !this.hasRedactions && !this.hintsOnly;
this.hasFiles = this._files.length > 0;
this.filesLength = this._files.length;
this.reanalysisRequired = this._files.some(file => file.analysisRequired);
diff --git a/libs/red-ui-http/src/lib/model/fileStatus.ts b/libs/red-ui-http/src/lib/model/fileStatus.ts
index 357d21c31..09b373983 100644
--- a/libs/red-ui-http/src/lib/model/fileStatus.ts
+++ b/libs/red-ui-http/src/lib/model/fileStatus.ts
@@ -84,10 +84,6 @@ export interface FileStatus {
* Shows if any redactions were found during the analysis.
*/
hasRedactions?: boolean;
- /**
- * Shows if any requests were found during the analysis.
- */
- hasRequests?: boolean;
/**
* Shows if there is any change between the previous and current analysis.
*/
@@ -140,6 +136,8 @@ export interface FileStatus {
* The list of excluded pages.
*/
excludedPages?: number[];
+
+ hasSuggestions?: boolean;
}
export namespace FileStatus {