# HG changeset patch # User Marcin Lulek # Date 2016-08-23 14:25:25 # Node ID 04c2aa4888d3bef86e54435fee953fca4abd39a8 # Parent a5fa0fb16992d6202afce0f3249fca3f1a6385f9 notifications: proper check for test messages diff --git a/rhodecode/public/js/src/rhodecode/utils/notifications.js b/rhodecode/public/js/src/rhodecode/utils/notifications.js --- a/rhodecode/public/js/src/rhodecode/utils/notifications.js +++ b/rhodecode/public/js/src/rhodecode/utils/notifications.js @@ -27,8 +27,7 @@ function notifyToaster(data){ } function handleNotifications(data) { - - if (!templateContext.rhodecode_user.notification_status && !data.testMessage) { + if (!templateContext.rhodecode_user.notification_status && !data.message.testMessage) { // do not act if notifications are disabled return }