webpack/scenes/Tasks/helpers.js in katello-4.6.2.1 vs webpack/scenes/Tasks/helpers.js in katello-4.7.0.rc1

- old
+ new

@@ -31,20 +31,27 @@ id, message: __('Go to job details'), baseUrl: 'job_invocations', }); -export const renderTaskStartedToast = (task) => { +export const renderTaskStartedToast = (task, override = '') => { if (!task) return; const message = (__(`Task ${task.humanized.action} has started.`)); - window.tfm.toastNotifications.notify({ - message, - type: 'info', - link: foremanTasksLink(task.id), - - }); + if (override) { + window.tfm.toastNotifications.notify({ + message: override, + type: 'info', + link: foremanTasksLink(task.id), + }); + } else { + window.tfm.toastNotifications.notify({ + message, + type: 'info', + link: foremanTasksLink(task.id), + }); + } }; export const renderRexJobStartedToast = ({ id, description, key }) => { if (!id) return; const message = (__(`Job '${description}' has started.`));