Add missing information on overview page for it to compile

This commit is contained in:
2025-06-18 20:54:21 +02:00
parent 229bfe0b79
commit 73fbe30b3d
2 changed files with 6 additions and 4 deletions

View File

@@ -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>

View File

@@ -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(