Renamed onReRunClick in useWorkflowRuns.ts to rerun

This commit is contained in:
ebarrios
2020-09-23 17:39:50 +02:00
parent 8a0113b4a7
commit 295d98d595
2 changed files with 3 additions and 3 deletions
@@ -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,