[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:
parent
e741323577
commit
3df657b29a
|
@ -48,10 +48,10 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
public properties: EnvProperties = properties;
|
public properties: EnvProperties = properties;
|
||||||
public exists: boolean = true;
|
public exists: boolean = true;
|
||||||
public roleFb: FormGroup;
|
public roleFb: FormGroup;
|
||||||
/* Paging */
|
/** Paging */
|
||||||
page: number = 1;
|
page: number = 1;
|
||||||
pageSize: number = 5;
|
pageSize: number = 5;
|
||||||
/* Search */
|
/** Search */
|
||||||
filterForm: FormGroup;
|
filterForm: FormGroup;
|
||||||
@ViewChild('inviteModal') inviteModal: AlertModal;
|
@ViewChild('inviteModal') inviteModal: AlertModal;
|
||||||
@ViewChild('deleteModal') deleteModal: AlertModal;
|
@ViewChild('deleteModal') deleteModal: AlertModal;
|
||||||
|
@ -198,5 +198,6 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
|
|
||||||
private filterBySearch(value: any) {
|
private filterBySearch(value: any) {
|
||||||
this.showSubscribers = this.subscribers.filter(subscriber => !value || subscriber.email.includes(value));
|
this.showSubscribers = this.subscribers.filter(subscriber => !value || subscriber.email.includes(value));
|
||||||
|
this.page = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue