Adds filter on Datataset's editor DMP selector to only fetch DMPs with "Draft" status. (Issue #213)
This commit is contained in:
parent
e96c927f94
commit
da031838d6
|
@ -346,6 +346,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields });
|
const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields });
|
||||||
dmpDataTableRequest.criteria = new DmpCriteria();
|
dmpDataTableRequest.criteria = new DmpCriteria();
|
||||||
dmpDataTableRequest.criteria.like = query;
|
dmpDataTableRequest.criteria.like = query;
|
||||||
|
dmpDataTableRequest.criteria.status = DmpStatus.Draft;
|
||||||
return this.dmpService.getPaged(dmpDataTableRequest, "autocomplete").pipe(map(x => x.data));
|
return this.dmpService.getPaged(dmpDataTableRequest, "autocomplete").pipe(map(x => x.data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue