Compare commits

..

3 Commits

Author SHA1 Message Date
b8d1fddd91 Remove time portion
Some checks are pending
continuous-integration/drone/push Build is running
No time is entered when creating / editing
2025-06-20 21:03:47 +02:00
9246729edf Order cars by name 2025-06-20 21:02:38 +02:00
e13b5f2cdc Remove log messages 2025-06-20 21:02:05 +02:00
3 changed files with 4 additions and 5 deletions

View File

@@ -81,7 +81,8 @@ export class EditEntryComponent implements OnInit {
.getAll()
.pipe(
takeUntilDestroyed(),
map(response => response.cars),
map(response => response.cars
.sort((a, b) => a.name.localeCompare(b.name))),
tap(cars => {
const selectedCarId = this.selectedCarService.getSelectedCarId();
@@ -108,7 +109,6 @@ export class EditEntryComponent implements OnInit {
.pipe(
takeUntilDestroyed(this.destroyRef),
tap((car) => {
console.log('Selected car changed (edit entry):', car);
this.selectedCarService.setSelectedCarId(car?.id ?? null);
})
)

View File

@@ -67,8 +67,6 @@ export class EntryCardComponent {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
});
this.confirmationService.confirm({

View File

@@ -99,6 +99,8 @@ export class EntriesComponent implements OnInit {
this.cars$ = this.entriesOverviewService.getCars()
.pipe(
takeUntilDestroyed(),
map((cars) => cars
.sort((a, b) => a.name.localeCompare(b.name))),
tap((cars) => {
const selectedCarId = this.selectedCarService.getSelectedCarId();
@@ -121,7 +123,6 @@ export class EntriesComponent implements OnInit {
.pipe(
takeUntilDestroyed(this.destroyRef),
tap((car) => {
console.log('Selected car changed (entries):', car);
this.selectedCarService.setSelectedCarId(car?.id ?? null);
})
)