Skip to content

Commit

Permalink
Render notifications fetched from the API in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed May 31, 2018
1 parent 5a89bb7 commit b7f7ad2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function eventNotifications($timeout, API) {
.then(function(data) {
data.resources.forEach(function(resource) {
var msg = miqFormatNotification(resource.details.text, resource.details.bindings);
events.notifications.splice(0, 0, {
events.notifications.push({
id: resource.id,
notificationType: _this.EVENT_NOTIFICATION,
unread: ! resource.seen,
Expand Down

0 comments on commit b7f7ad2

Please sign in to comment.