jomarko commented on code in PR #2158:
URL:
https://github.com/apache/incubator-kie-tools/pull/2158#discussion_r1502453074
##########
packages/dmn-editor/src/diagram/nodes/OutgoingStuffNodePanel.tsx:
##########
@@ -61,6 +61,55 @@ export function OutgoingStuffNodePanel(props: { isVisible:
boolean; nodeTypes: N
[props.isVisible]
);
+ const getEdgeActionTitle = React.useCallback((edgeType: string): string => {
+ switch (edgeType) {
+ case EDGE_TYPES.informationRequirement: {
+ return "Add Information Requirement edge";
+ }
+ case EDGE_TYPES.knowledgeRequirement: {
+ return "Add Knowledge Requirement edge";
+ }
+ case EDGE_TYPES.authorityRequirement: {
+ return "Add Authority Requirement edge";
+ }
+ case EDGE_TYPES.association: {
+ return "Add Association edge";
+ }
+ default: {
+ return "Add Unknon edge type";
+ }
Review Comment:
I agree with this suggestion, it improves the code, changes pushed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]