do in subscription
This commit is contained in:
parent
3fa6ffdec1
commit
01baa5a174
1 changed files with 3 additions and 3 deletions
|
@ -189,9 +189,6 @@ export class CallsComponent {
|
|||
setPage(p: PageEvent, force?: boolean) {
|
||||
this.selection.clear();
|
||||
this.curPage = p;
|
||||
if (this.callsTable) {
|
||||
this.callsTable.nativeElement.scrollIntoView(true);
|
||||
}
|
||||
if (p && p!.pageSize != this.perPage) {
|
||||
this.perPage = p!.pageSize;
|
||||
this.prefsSvc.set('callsPerPage', p!.pageSize);
|
||||
|
@ -261,6 +258,9 @@ export class CallsComponent {
|
|||
this.isLoading = false;
|
||||
this.count = calls.count;
|
||||
this.currentSet = calls.calls;
|
||||
if (this.callsTable) {
|
||||
this.callsTable.nativeElement.scrollIntoView(true);
|
||||
}
|
||||
this.callsResult.next(
|
||||
this.currentSet
|
||||
? this.currentSet.slice(
|
||||
|
|
Loading…
Add table
Reference in a new issue