diff --git a/src/packages/sensor/component/detail/detail.component.html b/src/packages/sensor/component/detail/detail.component.html index 419ccc0..49b6626 100644 --- a/src/packages/sensor/component/detail/detail.component.html +++ b/src/packages/sensor/component/detail/detail.component.html @@ -37,7 +37,7 @@
- + diff --git a/src/packages/sensor/component/detail/detail.component.ts b/src/packages/sensor/component/detail/detail.component.ts index 72dea64..b2d2023 100644 --- a/src/packages/sensor/component/detail/detail.component.ts +++ b/src/packages/sensor/component/detail/detail.component.ts @@ -70,7 +70,8 @@ export class DetailComponent implements OnInit, AfterContentInit, OnDestroy { }); } - onTargetClick(event) { + onTargetClick(target) { + this.router.navigate(['sensors'], { queryParams: { target: target.id } }); } }