RED-5976: Fixed download button not clickable in listing and in dialog.
This commit is contained in:
parent
1cb0d0c005
commit
f3ce394974
@ -31,7 +31,7 @@ const routes: Routes = [
|
|||||||
component: DossiersListingScreenComponent,
|
component: DossiersListingScreenComponent,
|
||||||
pathMatch: 'full',
|
pathMatch: 'full',
|
||||||
canActivate: [CompositeRouteGuard],
|
canActivate: [CompositeRouteGuard],
|
||||||
data: { guards: [DossierFilesGuard], reuse: true, dossiersService: ACTIVE_DOSSIERS_SERVICE },
|
data: { routeGuards: [DossierFilesGuard], reuse: true, dossiersService: ACTIVE_DOSSIERS_SERVICE },
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -56,6 +56,7 @@ export class DownloadDialogComponent {
|
|||||||
|
|
||||||
get invalidDownload() {
|
get invalidDownload() {
|
||||||
return (
|
return (
|
||||||
|
!this.form.controls.reportTemplateIds.value.length &&
|
||||||
!!this.form.controls.downloadFileTypes.value.length &&
|
!!this.form.controls.downloadFileTypes.value.length &&
|
||||||
this.form.controls.downloadFileTypes.value.every(type => type === DownloadFileTypes.REDACTED) &&
|
this.form.controls.downloadFileTypes.value.every(type => type === DownloadFileTypes.REDACTED) &&
|
||||||
!this.data.files.some(file => file.workflowStatus === WorkflowFileStatuses.APPROVED)
|
!this.data.files.some(file => file.workflowStatus === WorkflowFileStatuses.APPROVED)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user