Add run-all dead tasks action button to DeadTasksTable

This commit is contained in:
Ken Hibino
2020-12-17 06:57:30 -08:00
parent 4d5de30a57
commit bf81787115
6 changed files with 104 additions and 13 deletions

View File

@@ -9,6 +9,7 @@ import {
DELETE_DEAD_TASK_SUCCESS,
DELETE_RETRY_TASK_SUCCESS,
DELETE_SCHEDULED_TASK_SUCCESS,
RUN_ALL_DEAD_TASKS_SUCCESS,
RUN_DEAD_TASK_SUCCESS,
TasksActionTypes,
} from "../actions/tasksActions";
@@ -80,10 +81,16 @@ function snackbarReducer(
};
}
case RUN_ALL_DEAD_TASKS_SUCCESS:
return {
isOpen: true,
message: "All dead tasks are now pending",
};
case DELETE_ALL_DEAD_TASKS_SUCCESS:
return {
isOpen: true,
message: `All dead tasks delete`,
message: "All dead tasks delete",
};
default: