diff --git a/web/angular/src/app/views/place-visits.component.html b/web/angular/src/app/views/place-visits.component.html index 6d2de0a..f795f50 100644 --- a/web/angular/src/app/views/place-visits.component.html +++ b/web/angular/src/app/views/place-visits.component.html @@ -47,7 +47,7 @@ - + ID {{element.id}} diff --git a/web/angular/src/app/views/place-visits.component.ts b/web/angular/src/app/views/place-visits.component.ts index 12b72e5..18a4ba0 100644 --- a/web/angular/src/app/views/place-visits.component.ts +++ b/web/angular/src/app/views/place-visits.component.ts @@ -14,6 +14,7 @@ import { MarkerMapComponent } from "../widgets/marker-map.component"; import { PlaceVisitService } from "../services/place-visit.service"; import { Page, PaginationHandler } from "../utils/pagination"; import { ConfirmationDialogComponent } from "../widgets/confirmation-dialog.component"; +import { DataSource } from "@angular/cdk/table"; @Component({ selector: 'place-visits', @@ -32,6 +33,7 @@ import { ConfirmationDialogComponent } from "../widgets/confirmation-dialog.comp readonly place: BehaviorSubject; readonly page: BehaviorSubject; readonly deleting = new BehaviorSubject(false); + readonly dataSource: DataSource; private paginationHandler: PaginationHandler; private placeSubscription: Subscription; @@ -40,12 +42,13 @@ import { ConfirmationDialogComponent } from "../widgets/confirmation-dialog.comp private apiClientService: ApiClientService, private snackbar: MatSnackBar, private dialog: MatDialog, - protected placeService: PlaceVisitService, + private placeService: PlaceVisitService, private route: ActivatedRoute ) { this.loading = placeService.loading; this.page = placeService.page; this.place = placeService.place; + this.dataSource = placeService; } reloadPlace() {