RED-3796: Fixed initial setEntities for dossier listing
This commit is contained in:
parent
1b08b179a0
commit
57f3ac4ead
@ -27,6 +27,7 @@ export class ArchivedDossiersScreenComponent extends ListingComponent<Dossier> i
|
|||||||
) {
|
) {
|
||||||
super(_injector);
|
super(_injector);
|
||||||
this._dossierTemplateId = this._router.routerState.snapshot.root.firstChild.firstChild.paramMap.get(DOSSIER_TEMPLATE_ID);
|
this._dossierTemplateId = this._router.routerState.snapshot.root.firstChild.firstChild.paramMap.get(DOSSIER_TEMPLATE_ID);
|
||||||
|
this.entitiesService.setEntities(this._archivedDossiersService.all.filter(d => d.dossierTemplateId === this._dossierTemplateId));
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -40,6 +40,7 @@ export class DossiersListingScreenComponent extends ListingComponent<Dossier> im
|
|||||||
super(_injector);
|
super(_injector);
|
||||||
this.dossierTemplateId = router.routerState.snapshot.root.firstChild.firstChild.paramMap.get(DOSSIER_TEMPLATE_ID);
|
this.dossierTemplateId = router.routerState.snapshot.root.firstChild.firstChild.paramMap.get(DOSSIER_TEMPLATE_ID);
|
||||||
this.buttonConfigs = this._configService.buttonsConfig(this.dossierTemplateId);
|
this.buttonConfigs = this._configService.buttonsConfig(this.dossierTemplateId);
|
||||||
|
this.entitiesService.setEntities(this._activeDossiersService.all.filter(d => d.dossierTemplateId === this.dossierTemplateId));
|
||||||
}
|
}
|
||||||
|
|
||||||
openAddDossierDialog(): void {
|
openAddDossierDialog(): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user