This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<ng-container *ngIf="loading.getValue() || deleting.getValue()">
|
||||
<mat-progress-bar mode="indeterminate" color="accent"></mat-progress-bar>
|
||||
</ng-container>
|
||||
<mat-table #table [dataSource]="placeService">
|
||||
<mat-table #table [dataSource]="dataSource">
|
||||
<ng-container matColumnDef="id">
|
||||
<mat-header-cell *matHeaderCellDef> ID </mat-header-cell>
|
||||
<mat-cell *matCellDef="let element"> {{element.id}} </mat-cell>
|
||||
|
||||
@@ -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<Place>;
|
||||
readonly page: BehaviorSubject<VisitPage>;
|
||||
readonly deleting = new BehaviorSubject(false);
|
||||
readonly dataSource: DataSource<Visit>;
|
||||
private paginationHandler: PaginationHandler<Visit, VisitPage>;
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user