RED-3499 -> minor update to display "reanalyse all" button in screen header only if there is at least one file which require analysis

This commit is contained in:
Valentin Mihai 2022-03-02 11:53:30 +02:00
parent f44235ad8b
commit 85c6d87ea3
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export class PermissionsService {
}
displayReanalyseBtn(dossier: Dossier): boolean {
return this.isApprover(dossier) && this._filesMapService.get(dossier.dossierId).length > 0;
return this.isApprover(dossier) && !!this._filesMapService.get(dossier.dossierId).find(f => f.analysisRequired);
}
canEditFileAttributes(file: File): boolean {

@ -1 +1 @@
Subproject commit 17008f44757a29ae3d09581a94520c2a05670432
Subproject commit 4d045682ab46688934883450706e8aee8e2f1d02