From f5e4fed8d3c7ec500721413fe5502fd1050649cc Mon Sep 17 00:00:00 2001 From: Mattia Mancini <mancini@astron.nl> Date: Mon, 19 Nov 2018 12:47:47 +0000 Subject: [PATCH] OSB-31: Fixing tile number for the LBL --- .../maintenancedb_view/src/components/StationTestView.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js index ccba6c44a62..48fb8cc738c 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js @@ -38,7 +38,7 @@ function antennaNumberFromRCUID(rcuID, componentType) { result.polarization = rcuID % 2 === 1 ? 'X' : 'Y' - result.id = Math.floor(rcuID / 2) + result.id = Math.floor(rcuID / 2) + 48 return result } else { return {id: rcuID} @@ -81,16 +81,19 @@ class GenericStatus extends Component { return cls; } - onMouseOver = () => { + onMouseOver = (e) => { + e.stopPropagation(); if (this.props.n_errors > 0) { this.props.onSelect(this.props.errors_per_polarization); } } - onMouseOut = () => { + onMouseOut = (e) => { + e.stopPropagation(); if (this.props.n_errors > 0) { this.props.onSelect(null); } + } // left-click with mouse -- GitLab