no message

This commit is contained in:
annampak 2018-02-09 18:50:43 +02:00
parent db72ca982d
commit edde3cb050
2 changed files with 7 additions and 3 deletions

View File

@ -58,7 +58,9 @@ export class DatasetListingComponent implements OnInit {
this.criteria.setCriteria(this.getDefaultCriteria(this.dmpId));
this.refresh();
this.criteria.setRefreshCallback(() => this.refresh());
if (this.dmpId != null) this.titlePrefix ="for " + params['dmpLabel'];
if (this.dmpId != null)
if(params['dmpLabel']!=undefined)
this.titlePrefix ="for " + params['dmpLabel'];
});
}

View File

@ -56,8 +56,10 @@ export class DatasetWizardListingComponent implements OnInit {
ngOnInit() {
this.route.params.subscribe((params: Params) => {
if (this.dmpId != null) this.titlePrefix ="for " + params['dmpLabel'];
this.route.params.subscribe((params: Params) => {debugger;
if (this.dmpId != null)
if(params['dmpLabel']!=undefined)
this.titlePrefix ="for " + params['dmpLabel'];
});
let request: DataTableRequest<DatasetCriteria> = new DataTableRequest<DatasetCriteria>(null, null, null);
request.criteria = new DatasetCriteria();