New Angular based web version #1

Closed
thomas.nuyken wants to merge 150 commits from main into ddd
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 73fbe30b3d - Show all commits

View File

@@ -16,11 +16,11 @@
<p-dataView
[value]="entries"
[paginator]="true"
[rows]="rowsPerPageDefaultOption"
[rowsPerPageOptions]="rowsPerPageOptions"
[rows]="25"
[rowsPerPageOptions]="[10, 25, 50, 100]"
[pageLinks]="0"
[showCurrentPageReport]="true"
[currentPageReportTemplate]="currentPageReportTemplate"
currentPageReportTemplate="{currentPage} / {totalPages}"
layout="list"
>
<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 { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { ReactiveFormsModule } from '@angular/forms';
@@ -39,6 +39,8 @@ export class EntriesComponent {
protected readonly consumptionEntries$: Observable<ConsumptionEntry[]>;
protected readonly cars$: Observable<Car[]>;
protected readonly skeletonsIterationSource = Array(10).fill(0);
constructor() {
this.consumptionEntries$ = this.consumptionClient.getAll()
.pipe(