Fix a bug with users search
This commit is contained in:
parent
25ea02d4a0
commit
fa5da35853
|
@ -151,16 +151,16 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentActivePage(): any[] {
|
get currentActivePage(): any[] {
|
||||||
if (this.active) {
|
if (this.showActive) {
|
||||||
return this.active.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize);
|
return this.showActive.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize);
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentPendingPage(): any[] {
|
get currentPendingPage(): any[] {
|
||||||
if (this.pending) {
|
if (this.showPending) {
|
||||||
return this.pending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize);
|
return this.showPending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize);
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue