[Library|Trunk]

Filters as href: When refine filter changes remove the page parameter, so the refine will run again




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59643 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-10-20 13:49:53 +00:00
parent 8d1d852008
commit 136e79f3bb
2 changed files with 3 additions and 6 deletions

View File

@ -262,9 +262,7 @@ export class SearchFilterComponent implements OnInit, OnChanges{
//has no filter, no value --> add the value
params[filter.filterId] = '"' + encodeURIComponent(value.id) + '"' ;
}
if(params["page"] && params["page"]!="1"){
params["page"]=1;
}
delete params['page'];
return params;
}
}

View File

@ -76,9 +76,8 @@ export class RangeFilterComponent {
}else{
delete params['year'];
}
if(params["page"] && params["page"]!="1"){
params["page"]=1;
}
delete params['page'];
return params;
}
}