mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Fix compile warnings
This commit is contained in:
parent
c86fa16820
commit
41f28b13c6
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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[]>;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue