##// END OF EJS Templates
notifications: replace testMessage with "force"
ergo -
r732:2c17b7fe default
parent child Browse files
Show More
@@ -15,7 +15,7 b' function notifyToaster(data){'
15 }
15 }
16
16
17 function handleNotifications(data) {
17 function handleNotifications(data) {
18 if (!templateContext.rhodecode_user.notification_status && !data.message.testMessage) {
18 if (!templateContext.rhodecode_user.notification_status && !data.message.force) {
19 // do not act if notifications are disabled
19 // do not act if notifications are disabled
20 return
20 return
21 }
21 }
@@ -79,7 +79,7 b''
79 message: {
79 message: {
80 message: 'This is a test notification.',
80 message: 'This is a test notification.',
81 level: level,
81 level: level,
82 testMessage: true
82 force: true
83 }
83 }
84 };
84 };
85 $.Topic('/notifications').publish(payload);
85 $.Topic('/notifications').publish(payload);
General Comments 0
You need to be logged in to leave comments. Login now