From 2bc93bba6f2a0d820770850f351f33bc2a81ad67 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 25 Jul 2018 13:20:54 +0000 Subject: [PATCH] Bug fix in sorting values in search filters. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52815 d315682c-612b-4755-9ff5-7f18f6832af3 --- searchPages/searchUtils/searchFilter.component.html | 2 +- searchPages/searchUtils/searchFilter.component.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/searchPages/searchUtils/searchFilter.component.html b/searchPages/searchUtils/searchFilter.component.html index 43b27c27..725ca4fc 100644 --- a/searchPages/searchUtils/searchFilter.component.html +++ b/searchPages/searchUtils/searchFilter.component.html @@ -47,7 +47,7 @@
{{_formatName(value)}}
- ({{value.number}}) + ({{value.number|number}})
diff --git a/searchPages/searchUtils/searchFilter.component.ts b/searchPages/searchUtils/searchFilter.component.ts index 63601c86..c296466d 100644 --- a/searchPages/searchUtils/searchFilter.component.ts +++ b/searchPages/searchUtils/searchFilter.component.ts @@ -104,17 +104,17 @@ export class SearchFilterComponent { return selected; } - getNotSelectedValues(filter, sortBy):any{ + getNotSelectedValues(filter, sortBy:string = "num"):any{ var notSselected = []; - if(filter.countSelectedValues >0){ + //if(filter.countSelectedValues >0){ for (var i=0; i < filter.values.length; i++){ if(!filter.values[i].selected){ notSselected.push(filter.values[i]); } } - }else { - notSselected = filter.values; - } + //}else { + // notSselected = filter.values; + //} if(sortBy == "name"){