Renamed onReRunClick in useWorkflowRuns.ts to rerun
This commit is contained in:
@@ -35,7 +35,7 @@ export type WorkflowRun = {
|
||||
status: string;
|
||||
substitutions: Substitutions;
|
||||
createTime: string;
|
||||
onReRunClick: () => void;
|
||||
rerun: () => void;
|
||||
};
|
||||
|
||||
const generatedColumns: TableColumn[] = [
|
||||
@@ -105,7 +105,7 @@ const generatedColumns: TableColumn[] = [
|
||||
title: 'Actions',
|
||||
render: (row: Partial<WorkflowRun>) => (
|
||||
<Tooltip title="Rerun workflow">
|
||||
<IconButton onClick={row.onReRunClick}>
|
||||
<IconButton onClick={row.rerun}>
|
||||
<RetryIcon />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
@@ -44,7 +44,7 @@ export function useWorkflowRuns({ projectId }: { projectId: string }) {
|
||||
return workflowRunsData.builds.map(run => ({
|
||||
message: run.substitutions.REPO_NAME,
|
||||
id: run.id,
|
||||
onReRunClick: async () => {
|
||||
rerun: async () => {
|
||||
try {
|
||||
await api.reRunWorkflow({
|
||||
projectId,
|
||||
|
||||
Reference in New Issue
Block a user