feat: move duplicate above delete
This commit is contained in:
@@ -246,6 +246,9 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
|
|||||||
<TableCell key={column.id} align={column.align}>
|
<TableCell key={column.id} align={column.align}>
|
||||||
<OptionsButton
|
<OptionsButton
|
||||||
handleEdit={() => handleEditRobot(row.id, row.name, row.params || [])}
|
handleEdit={() => handleEditRobot(row.id, row.name, row.params || [])}
|
||||||
|
handleDuplicate={() => {
|
||||||
|
handleDuplicateRobot(row.id, row.name, row.params || []);
|
||||||
|
}}
|
||||||
handleDelete={() => {
|
handleDelete={() => {
|
||||||
|
|
||||||
checkRunsForRecording(row.id).then((result: boolean) => {
|
checkRunsForRecording(row.id).then((result: boolean) => {
|
||||||
@@ -262,9 +265,6 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
handleDuplicate={() => {
|
|
||||||
handleDuplicateRobot(row.id, row.name, row.params || []);
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user