Get only draft DMPs on selecting an existing DMP at /datasetcreatewizard, fixes images on /about

This commit is contained in:
apapachristou 2019-06-25 10:55:56 +03:00
parent 61cba23bf6
commit e29fbd4dca
2 changed files with 5 additions and 9 deletions

View File

@ -14,19 +14,13 @@
<h1>{{ 'ABOUT.CONTRIBUTORS'| translate}}</h1>
</div>
</div>
<div class="row">
<div class="col-md-5">
</div>
<div class="col-md-1">
<div class="row d-flex justify-content-center">
<div class="col-md-2">
<img src="/assets/images/logo_cite.png">
</div>
<div class="col-md-1">
<div class="col-md-2">
<img src="/assets/images/logo_cite.png">
</div>
<div class="col-md-5">
</div>
</div>
</div>

View File

@ -19,6 +19,7 @@ import { DatasetWizardService } from '../../../core/services/dataset-wizard/data
import { TranslateService } from '@ngx-translate/core';
import { DmpService } from '../../../core/services/dmp/dmp.service';
import { FormControl } from '@angular/forms/src/model';
import { DmpStatus } from '../../../core/common/enum/dmp-status';
@Component({
selector: 'dataset-dmp-selector-component',
@ -75,6 +76,7 @@ export class DatasetDmpSelector extends BaseComponent implements OnInit, IBreadC
fields.push('asc');
const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields });
dmpDataTableRequest.criteria = new DmpCriteria();
dmpDataTableRequest.criteria.status = DmpStatus.Draft;
dmpDataTableRequest.criteria.like = query;
return this.dmpService.getPaged(dmpDataTableRequest, "autocomplete")