[Library|Trunk]
- add more checks about resultTypes - filters as href: chnage to page 1 when adding/removing filter git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59637 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
76c9977a54
commit
8d1d852008
|
@ -8,7 +8,7 @@
|
|||
</span>
|
||||
</span>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="resultTypes.countSelectedValues > 0 && resultTypes">
|
||||
<ng-container *ngIf=" resultTypes && resultTypes.countSelectedValues > 0">
|
||||
<ng-container *ngFor="let type of resultTypes.values; let i = index; let end = last; ">
|
||||
<ng-container *ngIf="type.selected">
|
||||
<span [title]="'Remove '+ type.name" (click)="removeResultType(type.id) "
|
||||
|
|
|
@ -262,6 +262,9 @@ 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;
|
||||
}
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,6 +76,9 @@ export class RangeFilterComponent {
|
|||
}else{
|
||||
delete params['year'];
|
||||
}
|
||||
if(params["page"] && params["page"]!="1"){
|
||||
params["page"]=1;
|
||||
}
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue