Add missing information on overview page for it to compile
This commit is contained in:
@@ -16,11 +16,11 @@
|
|||||||
<p-dataView
|
<p-dataView
|
||||||
[value]="entries"
|
[value]="entries"
|
||||||
[paginator]="true"
|
[paginator]="true"
|
||||||
[rows]="rowsPerPageDefaultOption"
|
[rows]="25"
|
||||||
[rowsPerPageOptions]="rowsPerPageOptions"
|
[rowsPerPageOptions]="[10, 25, 50, 100]"
|
||||||
[pageLinks]="0"
|
[pageLinks]="0"
|
||||||
[showCurrentPageReport]="true"
|
[showCurrentPageReport]="true"
|
||||||
[currentPageReportTemplate]="currentPageReportTemplate"
|
currentPageReportTemplate="{currentPage} / {totalPages}"
|
||||||
layout="list"
|
layout="list"
|
||||||
>
|
>
|
||||||
<ng-template #list let-entries>
|
<ng-template #list let-entries>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {AsyncPipe, CommonModule} from '@angular/common';
|
import { AsyncPipe, CommonModule } from '@angular/common';
|
||||||
import { Component, inject } from '@angular/core';
|
import { Component, inject } from '@angular/core';
|
||||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
@@ -39,6 +39,8 @@ export class EntriesComponent {
|
|||||||
protected readonly consumptionEntries$: Observable<ConsumptionEntry[]>;
|
protected readonly consumptionEntries$: Observable<ConsumptionEntry[]>;
|
||||||
protected readonly cars$: Observable<Car[]>;
|
protected readonly cars$: Observable<Car[]>;
|
||||||
|
|
||||||
|
protected readonly skeletonsIterationSource = Array(10).fill(0);
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.consumptionEntries$ = this.consumptionClient.getAll()
|
this.consumptionEntries$ = this.consumptionClient.getAll()
|
||||||
.pipe(
|
.pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user