diff --git a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx index 6323edf3a0ca3..7a68b2663fe0e 100644 --- a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx +++ b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx @@ -73,6 +73,7 @@ type SelectValue = { }; interface AlertReportModalProps { + addSuccessToast: (msg: string) => void; addDangerToast: (msg: string) => void; alert?: AlertObject | null; isReport?: boolean; @@ -402,6 +403,7 @@ const AlertReportModal: FunctionComponent = ({ show, alert = null, isReport = false, + addSuccessToast, }) => { const conf = useCommonConf(); const allowedNotificationMethods: NotificationMethodOption[] = @@ -555,6 +557,8 @@ const AlertReportModal: FunctionComponent = ({ return; } + addSuccessToast(t(`${data.type} updated`)); + if (onAdd) { onAdd(); } @@ -569,6 +573,8 @@ const AlertReportModal: FunctionComponent = ({ return; } + addSuccessToast(t(`${data.type} updated`)); + if (onAdd) { onAdd(response); }