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[] {
|
||||
if (this.active) {
|
||||
return this.active.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize);
|
||||
if (this.showActive) {
|
||||
return this.showActive.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
get currentPendingPage(): any[] {
|
||||
if (this.pending) {
|
||||
return this.pending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize);
|
||||
if (this.showPending) {
|
||||
return this.showPending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue