From 425c982865e5189cbe79da08e1336b9a2ac22cb7 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 24 Jul 2024 13:00:45 +0300 Subject: [PATCH] RED-9716: removed analyse button for archived files. --- .../components/file-actions/file-actions.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts index 8cda2b996..aead21c11 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts @@ -460,7 +460,8 @@ export class FileActionsComponent implements OnChanges { this.showStatusBar = !this.file.isError && !this.file.isUnprocessed && this.isDossierOverviewList; - const showReanalyse = this.canReanalyse || this.file.excludedFromAutomaticAnalysis || this.analysisForced; + const showReanalyse = + (this.canReanalyse || this.file.excludedFromAutomaticAnalysis || this.analysisForced) && !this.file.dossierArchived; this.showReanalyseFilePreview = showReanalyse && this.isFilePreview && !this.file.isApproved && this.isDossierMember; this.showReanalyseDossierOverview = showReanalyse && this.isDossierOverview && !this.file.isApproved && this.isDossierMember;