mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AppNotifications: Fixes issue with missing app notifications (#67190)
This commit is contained in:
parent
64ee42d01e
commit
714d2a4154
@ -22,10 +22,10 @@ export function AppNotificationList() {
|
|||||||
const styles = useStyles2(getStyles);
|
const styles = useStyles2(getStyles);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
appEvents.on(AppEvents.alertWarning, (payload) => notifyApp(createWarningNotification(...payload)));
|
appEvents.on(AppEvents.alertWarning, (payload) => dispatch(notifyApp(createWarningNotification(...payload))));
|
||||||
appEvents.on(AppEvents.alertSuccess, (payload) => notifyApp(createSuccessNotification(...payload)));
|
appEvents.on(AppEvents.alertSuccess, (payload) => dispatch(notifyApp(createSuccessNotification(...payload))));
|
||||||
appEvents.on(AppEvents.alertError, (payload) => notifyApp(createErrorNotification(...payload)));
|
appEvents.on(AppEvents.alertError, (payload) => dispatch(notifyApp(createErrorNotification(...payload))));
|
||||||
}, []);
|
}, [dispatch]);
|
||||||
|
|
||||||
const onClearAppNotification = (id: string) => {
|
const onClearAppNotification = (id: string) => {
|
||||||
dispatch(hideAppNotification(id));
|
dispatch(hideAppNotification(id));
|
||||||
|
Loading…
Reference in New Issue
Block a user