mintsweet commented on code in PR #4892:
URL: 
https://github.com/apache/incubator-devlake/pull/4892#discussion_r1162398233


##########
config-ui/src/plugins/components/transformation/index.tsx:
##########
@@ -126,48 +126,18 @@ export const Transformation = ({
                 render: (val, row) => (
                   <div>
                     <span>{val ?? 'N/A'}</span>
-                    {cs.transformationType === 'for-connection' && (
-                      <IconButton
-                        icon="annotation"
-                        tooltip="Select Transformation"
-                        onClick={() => {
-                          setSelected({
-                            ...selected,
-                            [`${cs.unique}`]: [row[getPluginId(cs.plugin)]],
-                          });
-                          setStartStepOption(undefined);
-                          setConnection(cs);
-                        }}
-                      />
-                    )}
-                    {cs.transformationType === 'for-scope' &&
-                      (row['transformationRuleId'] ? (
-                        <IconButton
-                          icon="annotation"
-                          tooltip="Edit Transformation"
-                          onClick={() => {
-                            setSelected({
-                              ...selected,
-                              [`${cs.unique}`]: [row[getPluginId(cs.plugin)]],
-                            });
-                            setStartStepOption({ type: 'edit', id: 
row['transformationRuleId'] });
-                            setConnection(cs);
-                          }}
-                        />
-                      ) : (
-                        <IconButton
-                          icon="annotation"
-                          tooltip="Add Transformation"
-                          onClick={() => {
-                            setSelected({
-                              ...selected,
-                              [`${cs.unique}`]: [row[getPluginId(cs.plugin)]],
-                            });
-                            setStartStepOption({ type: 'add' });
-                            setConnection(cs);
-                          }}
-                        />
-                      ))}
+                    <IconButton

Review Comment:
   Using a new `icon` and a new name `link transformation`.



-- 
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]

Reply via email to