RED-5976: Fixed download button not clickable in listing and in dialog.

This commit is contained in:
Nicoleta Panaghiu 2023-02-07 16:08:15 +02:00
parent 1cb0d0c005
commit f3ce394974
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ const routes: Routes = [
component: DossiersListingScreenComponent,
pathMatch: 'full',
canActivate: [CompositeRouteGuard],
data: { guards: [DossierFilesGuard], reuse: true, dossiersService: ACTIVE_DOSSIERS_SERVICE },
data: { routeGuards: [DossierFilesGuard], reuse: true, dossiersService: ACTIVE_DOSSIERS_SERVICE },
},
];

View File

@ -56,6 +56,7 @@ export class DownloadDialogComponent {
get invalidDownload() {
return (
!this.form.controls.reportTemplateIds.value.length &&
!!this.form.controls.downloadFileTypes.value.length &&
this.form.controls.downloadFileTypes.value.every(type => type === DownloadFileTypes.REDACTED) &&
!this.data.files.some(file => file.workflowStatus === WorkflowFileStatuses.APPROVED)