Skip to content

Commit

Permalink
[#469]-Small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasmadei authored and blcham committed Jun 26, 2024
1 parent 8cf493f commit 125b0cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ const FaultEventMenu = ({ shapeToolData, onEventUpdated, refreshTree, rootIri }:
} else if (iriOfSelectedValue === operationalIri) {
setSelectedRadioButton(RadioButtonType.Operational);
}
setSnsManuallyDefinedFailureRate(shapeToolData?.probability);
setSnsManuallyDefinedFailureRate(undefined);
setExternalManuallyDefinedFailureRate(undefined);
} else {
// NO SELECTED ESTIMATE => MANUAL IS SELECTED
setSelectedRadioButton(RadioButtonType.Manual);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ const FaultEventShapeToolPane = ({ data, onEventUpdated, refreshTree }: Props) =
refreshTree();
};

const isDisabled =
data &&
([EventType.INTERMEDIATE, EventType.BASIC, EventType.EXTERNAL].includes(data.eventType) || data.isReference);

editorPane = (
<ReusableFaultEventsProvider treeUri={faultTree?.iri}>
<FaultEventCreation
useFormMethods={useFormMethods}
isRootEvent={false}
eventValue={data}
isEditedEvent={true}
disabled={data ? data.eventType === EventType.INTERMEDIATE || data.isReference : false}
isEditMode={true}
disabled={isDisabled}
/>
</ReusableFaultEventsProvider>
);
Expand Down

0 comments on commit 125b0cd

Please sign in to comment.