Commit 797f9e53 by Johannes Edmeier

Fix missing notifications from eventstream

parent 813aae08
......@@ -123,8 +123,8 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
};
if (event.type === 'REGISTRATION') {
applicationGroups.addApplication(event.application, false);
refresh(event.application);
var group = applicationGroups.addApplication(event.application, false);
refresh(group, event.application);
title += ' instance registered.';
options.tag = event.application.id + '-REGISTRY';
} else if (event.type === 'DEREGISTRATION') {
......@@ -132,8 +132,8 @@ module.run(function ($rootScope, $state, Notification, Application, ApplicationG
title += ' instance removed.';
options.tag = event.application.id + '-REGISTRY';
} else if (event.type === 'STATUS_CHANGE') {
refresh(event.application);
applicationGroups.addApplication(event.application, true);
var group2 = applicationGroups.addApplication(event.application, true);
refresh(group2, event.application);
title += ' instance is ' + event.to.status;
options.tag = event.application.id + '-STATUS';
options.icon = event.to.status !== 'UP' ? require('./img/error.png') : require('./img/ok.png');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment