From 01c9a9041ea1b91c5da7439a565246327f84a278 Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 2 Sep 2019 21:14:11 -0400 Subject: [PATCH] fixed calibration button highlighting --- src/app/views/map/map.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/views/map/map.component.ts b/src/app/views/map/map.component.ts index 14985e2..75b1c5d 100644 --- a/src/app/views/map/map.component.ts +++ b/src/app/views/map/map.component.ts @@ -162,9 +162,9 @@ export class MapComponent implements OnDestroy, OnInit { } } - startCalibrating = () => { + startCalibrating = (menuItem?) => { let calibration = this.bottomSheet.open(CalibrateComponent, {hasBackdrop: false, disableClose: true}); - this.sub = calibration.afterDismissed().pipe(finalize(() => calibration.dismiss())).subscribe(); + this.sub = calibration.afterDismissed().pipe(finalize(() => calibration.dismiss()), filter(menuItem => !!menuItem)).subscribe(() => menuItem.enabled = false); }; startCircle = menuItem => {