fix: OHIF-386 Disable Export and Create Report buttons if there are no tracked measurements (#3102)

Use the disabled Button component variant when no tracked measurements are present.
Made the buttons look as per the spec.

Co-authored-by: Joe Boccanfuso <joe.boccanfuso@radicalimaging.com>
This commit is contained in:
Joe BoccanfusoandJoe Boccanfuso authored and GitHub committed 2023-01-09 12:19:48 -05:00
1 parent 9b0d542526
commit ac90df356e
2 files changed
+14 -6

No files matched your search

@@ -273,6 +273,10 @@ function PanelMeasurementTableTracking({ servicesManager, extensionManager }) {
isBackupSave: true,
});
}}
disabled={
additionalFindings.length === 0 &&
displayMeasurementsWithoutFindings.length === 0
}
/>
</div>
</>