From 3df657b29aa3c9a87e6b52f75d38b807f6399114 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 26 Mar 2021 09:25:39 +0000 Subject: [PATCH] [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 --- dashboard/users/subscribers/subscribers.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/users/subscribers/subscribers.component.ts b/dashboard/users/subscribers/subscribers.component.ts index 557592f9..40678b09 100644 --- a/dashboard/users/subscribers/subscribers.component.ts +++ b/dashboard/users/subscribers/subscribers.component.ts @@ -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; } }