New Angular based web version #1

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

View File

@@ -81,7 +81,8 @@ export class EditEntryComponent implements OnInit {
.getAll() .getAll()
.pipe( .pipe(
takeUntilDestroyed(), takeUntilDestroyed(),
map(response => response.cars), map(response => response.cars
.sort((a, b) => a.name.localeCompare(b.name))),
tap(cars => { tap(cars => {
const selectedCarId = this.selectedCarService.getSelectedCarId(); const selectedCarId = this.selectedCarService.getSelectedCarId();

View File

@@ -99,6 +99,8 @@ export class EntriesComponent implements OnInit {
this.cars$ = this.entriesOverviewService.getCars() this.cars$ = this.entriesOverviewService.getCars()
.pipe( .pipe(
takeUntilDestroyed(), takeUntilDestroyed(),
map((cars) => cars
.sort((a, b) => a.name.localeCompare(b.name))),
tap((cars) => { tap((cars) => {
const selectedCarId = this.selectedCarService.getSelectedCarId(); const selectedCarId = this.selectedCarService.getSelectedCarId();