diff --git a/src/app/bestand/bestand.component.html b/src/app/bestand/bestand.component.html index 947107c905504743c329a6a694f012a03bfcb383..cfad9ddaf089b7c1c18ba245a6866e3a79adcd1a 100644 --- a/src/app/bestand/bestand.component.html +++ b/src/app/bestand/bestand.component.html @@ -26,5 +26,5 @@ </ng-container> <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> - <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> + <tr mat-row *matRowDef="let row; columns: displayedColumns;" (click)="rowClicked(row)"></tr> </table> \ No newline at end of file diff --git a/src/app/bestand/bestand.component.ts b/src/app/bestand/bestand.component.ts index 08b2210a6bfcdae9ccbc74be20ee401c4b9345cf..2308c7469cc117feefaeb7d24c0a8b8288cccba1 100644 --- a/src/app/bestand/bestand.component.ts +++ b/src/app/bestand/bestand.component.ts @@ -42,6 +42,10 @@ export class BestandComponent implements OnInit { }); } + rowClicked(row: Product) { + window.location.href = "/#/buchung?item=" + row.id + } + ngOnDestroy() { this.querySubscription.unsubscribe(); }