Fixes synchronization on breadcrumb of /plans

This commit is contained in:
apapachristou 2019-06-24 17:46:22 +03:00
parent 74ed505702
commit 46042b7403
1 changed files with 9 additions and 5 deletions

View File

@ -76,12 +76,16 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread
// });
// }
// else
breadCrumbs.push({
this.language.get('NAV-BAR.MY-DMPS').pipe(takeUntil(this._destroyed)).subscribe(x => {
this.breadCrumbs = Observable.of([
{
parentComponentName: null,
label: this.language.instant('NAV-BAR.MY-DMPS'),
url: "/plans"
label: x,
url: '/plans'
}]
);
})
this.breadCrumbs = Observable.of(breadCrumbs);
this.criteria.setCriteria(this.getDefaultCriteria());
this.refresh();
this.criteria.setRefreshCallback((resetPages) => this.refresh(resetPages));