Fix compile warnings

This commit is contained in:
Chrystian Huot 2019-08-29 13:00:03 -04:00
parent c86fa16820
commit 41f28b13c6
3 changed files with 7 additions and 3 deletions

View file

@ -58,7 +58,7 @@
<mat-header-row *matHeaderRowDef="columns"></mat-header-row> <mat-header-row *matHeaderRowDef="columns"></mat-header-row>
<mat-row *matRowDef="let call; columns: columns"></mat-row> <mat-row *matRowDef="let call; columns: columns"></mat-row>
</mat-table> </mat-table>
<mat-paginator [length]="count" [hidePageSize]="true" (page)="onPage($event)" [pageSize]="pageSize" <mat-paginator [length]="count" [hidePageSize]="true" (page)="onPage($event)" [pageSize]="actualPageSize"
[showFirstLastButtons]="true"> [showFirstLastButtons]="true">
</mat-paginator> </mat-paginator>
</div> </div>

View file

@ -44,6 +44,10 @@ export class AppRadioSearchComponent implements OnDestroy, OnInit {
readonly columns = ['control', 'date', 'time', 'system', 'alpha', 'description']; readonly columns = ['control', 'date', 'time', 'system', 'alpha', 'description'];
get actualPageSize() {
return this.pageSize.value;
}
@ViewChild(MatPaginator, { static: true }) private matPaginator: MatPaginator; @ViewChild(MatPaginator, { static: true }) private matPaginator: MatPaginator;
@ViewChild(MatTable, { static: true }) private matTable: MatTable<RadioCall[]>; @ViewChild(MatTable, { static: true }) private matTable: MatTable<RadioCall[]>;

View file

@ -248,9 +248,9 @@ export class AppRadioService implements OnDestroy {
this.audioTimer = setInterval(() => this.emitTimeEvent(), 500); this.audioTimer = setInterval(() => this.emitTimeEvent(), 500);
}, (error: Error) => { }, (error: Error) => {
throw (error);
this.skip(true); this.skip(true);
throw (error);
}); });
} }
} }