RED-9716: removed analyse button for archived files.

This commit is contained in:
Nicoleta Panaghiu 2024-07-24 13:00:45 +03:00
parent 804fbf7b05
commit 425c982865

View File

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