Skip to content

Commit

Permalink
#170 Add a label to severy filter in alerts section
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Apr 13, 2017
1 parent 801107d commit 0ab460e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ui/app/scripts/controllers/alert/AlertListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
field: 'severity',
type: 'list',
defaultValue: [],
label: 'Severity',
convert: function(value) {
// Convert the text value to its numeric representation
return Severity.keys[value];
Expand Down Expand Up @@ -108,7 +109,6 @@
}

fn(event.id).then(function( /*data*/ ) {
self.list.update();
}, function(response) {
NotificationSrv.error('AlertListCtrl', response.data, response.status);
});
Expand All @@ -129,8 +129,6 @@
});

$q.all(promises).then(function( /*response*/ ) {
self.list.update();

NotificationSrv.log('The selected events have been ' + (follow ? 'followed' : 'unfollowed'), 'success');
}, function(response) {
NotificationSrv.error('AlertListCtrl', response.data, response.status);
Expand All @@ -149,6 +147,12 @@
});
};

self.ignore = function(event) {
AlertingSrv.ignore(event.id).then(function( /*data*/ ) {
self.list.update();
});
};

self.bulkIgnore = function() {
var ids = _.pluck(self.selection, 'id');

Expand All @@ -174,12 +178,6 @@
}
};

self.ignore = function(event) {
AlertingSrv.ignore(event.id).then(function( /*data*/ ) {
self.list.update();
});
};

self.load = function() {
var config = {
scope: $scope,
Expand Down

0 comments on commit 0ab460e

Please sign in to comment.