Compare commits
3 Commits
63c7624a00
...
b8d1fddd91
| Author | SHA1 | Date | |
|---|---|---|---|
| b8d1fddd91 | |||
| 9246729edf | |||
| e13b5f2cdc |
@@ -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);
|
||||
})
|
||||
)
|
||||
|
||||
@@ -67,8 +67,6 @@ export class EntryCardComponent {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
});
|
||||
|
||||
this.confirmationService.confirm({
|
||||
|
||||
@@ -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);
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user