Skip to content

Commit

Permalink
Merge pull request #477 from akaene/fix/469-radio-button-fix
Browse files Browse the repository at this point in the history
[#469]-Radio-button-fix
  • Loading branch information
blcham authored Jun 27, 2024
2 parents 5e49d45 + 54f9e8d commit 55449ce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ const FaultEventMenu = ({ shapeToolData, onEventUpdated, refreshTree, rootIri }:

const basedFailureRate = shapeToolData?.supertypes?.supertypes?.hasFailureRate?.estimate?.value;
const requiredFailureRate = shapeToolData?.supertypes?.hasFailureRate?.requirement?.upperBound;
const radioStyle = {
color: theme.main.black,
display: snsOperationalFailureRate || snsPredictedFailureRate ? "none" : undefined,
};

const { predictionIri, operationalIri } = getFailureRateIris(shapeToolData?.supertypes?.supertypes);

Expand Down Expand Up @@ -359,7 +363,7 @@ const FaultEventMenu = ({ shapeToolData, onEventUpdated, refreshTree, rootIri }:
<Box display={"flex"} flexDirection={"row"} alignItems="center">
<FormControlLabel
value={RadioButtonType.Manual}
control={<Radio style={{ color: theme.main.black }} />}
control={<Radio style={radioStyle} />}
label={`${t("faultEventMenu.manuallyDefinedFailureRate")}:`}
className={selectedRadioButton === RadioButtonType.Manual ? classes.selected : classes.notSelected}
/>
Expand Down

0 comments on commit 55449ce

Please sign in to comment.