fixed calibration button highlighting

This commit is contained in:
Zakary Timson 2019-09-02 21:14:11 -04:00
parent 649e0021d6
commit 01c9a9041e

View File

@ -162,9 +162,9 @@ export class MapComponent implements OnDestroy, OnInit {
} }
} }
startCalibrating = () => { startCalibrating = (menuItem?) => {
let calibration = this.bottomSheet.open(CalibrateComponent, {hasBackdrop: false, disableClose: true}); 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 => { startCircle = menuItem => {