[Library | Trunk]: Subscribers reset page on search

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60722 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-03-26 09:25:39 +00:00
parent e741323577
commit 3df657b29a
1 changed files with 3 additions and 2 deletions

View File

@ -48,10 +48,10 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
public properties: EnvProperties = properties;
public exists: boolean = true;
public roleFb: FormGroup;
/* Paging */
/** Paging */
page: number = 1;
pageSize: number = 5;
/* Search */
/** Search */
filterForm: FormGroup;
@ViewChild('inviteModal') inviteModal: AlertModal;
@ViewChild('deleteModal') deleteModal: AlertModal;
@ -198,5 +198,6 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
private filterBySearch(value: any) {
this.showSubscribers = this.subscribers.filter(subscriber => !value || subscriber.email.includes(value));
this.page = 1;
}
}