+ {data.length !== 0 &&
+ data.map((measurementItem, index) => (
+
+
+
+
No tracked measurements
@@ -52,8 +45,8 @@ const MeasurementTable = ({ data, title, amount, onClick, onEdit }) => {
MeasurementTable.defaultProps = {
amount: null,
data: [],
- onClick: () => { },
- onEdit: () => { },
+ onClick: () => {},
+ onEdit: () => {},
};
MeasurementTable.propTypes = {
diff --git a/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx b/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx
index 53455ab18..00c24ef22 100644
--- a/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx
+++ b/platform/ui/src/components/ViewportActionBar/ViewportActionBar.jsx
@@ -52,22 +52,38 @@ const ViewportActionBar = ({
const renderIconStatus = () => {
if (modality === 'SR') {
+ const TooltipMessage = isLocked
+ ? () => (
+
+ This SR is locked.
+ Measurements cannot be duplicated.
+
+ )
+ : () => (
+
+ This SR is unlocked.
+ You can duplicate measurements on your current report
by
+ clicking 'Edit'.
+
+ );
return (
<>
-
-
- SR
-
- {isLocked && (
-
- )}
-
+
} position="bottom-left">
+
+
+ SR
+
+ {isLocked && (
+
+ )}
+
+
{!isLocked && !isHydrated && (
-