From 26147d0c9eca26ef4bebed3b3950a6315d0b0527 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Tue, 17 Sep 2019 11:40:49 +0300 Subject: [PATCH] Fixes bug on get Draft Dmps when clicking "VIEW ALL" on DRAFT table on /home and makes Draft radio button on filters checked --- .../ui/dataset/listing/criteria/dataset-criteria.component.html | 2 +- .../ui/dataset/listing/criteria/dataset-criteria.component.ts | 1 + .../src/app/ui/dataset/listing/dataset-listing.component.html | 2 +- .../src/app/ui/dataset/listing/dataset-listing.component.ts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.html b/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.html index 5c3839e8b..51bdd3dfb 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.html +++ b/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.html @@ -16,7 +16,7 @@
{{'CRITERIA.DATA-SETS.STATUS'| translate}}
- {{ 'TYPES.DATASET-STATUS.DRAFT' | translate }} + {{ 'TYPES.DATASET-STATUS.DRAFT' | translate }} {{ 'TYPES.DATASET-STATUS.FINALISED' | translate }} {{ 'TYPES.DATASET-STATUS.ANY' | translate }} diff --git a/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.ts b/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.ts index 708c4c574..c25d3a896 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.ts +++ b/dmp-frontend/src/app/ui/dataset/listing/criteria/dataset-criteria.component.ts @@ -43,6 +43,7 @@ import { DatasetService } from '../../../../core/services/dataset/dataset.servic export class DatasetCriteriaComponent extends BaseCriteriaComponent implements OnInit { @Input() dmpSearchEnabled; + @Input() status; public criteria: any; public filteringTagsAsync = false; public filteredTags: ExternalSourceItemModel[]; diff --git a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.html b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.html index c9889f88f..e92a69879 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.html +++ b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.html @@ -15,7 +15,7 @@
- +
diff --git a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts index 705f03cf3..0cd581f27 100644 --- a/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts +++ b/dmp-frontend/src/app/ui/dataset/listing/dataset-listing.component.ts @@ -81,8 +81,8 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB if (this.status != null && this.status == DatasetStatus.Draft) { this.criteria.setCriteria(this.getDraftCriteria()); - this.refresh(); this.criteria.setRefreshCallback((resetPages) => this.refresh(resetPages)); + this.refresh(); } }); }