webpack/scenes/Tasks/TaskActions.js in katello-4.4.2.2 vs webpack/scenes/Tasks/TaskActions.js in katello-4.5.0.rc1
- old
+ new
@@ -39,5 +39,11 @@
export const startPollingTask = (key, task, handleSuccess) =>
withInterval(getTask(pollTaskKey(key), task, handleSuccess));
export const stopPollingTask = key => stopInterval(pollTaskKey(key));
+
+export const clearPollTaskData = key => ({
+ type: `${pollTaskKey(key)}_UPDATE`,
+ key: pollTaskKey(key),
+ payload: {},
+});