diff --git a/frontend/app/scripts/controllers/RootCtrl.js b/frontend/app/scripts/controllers/RootCtrl.js index 6abb174e2a..f7a82c3edc 100644 --- a/frontend/app/scripts/controllers/RootCtrl.js +++ b/frontend/app/scripts/controllers/RootCtrl.js @@ -106,7 +106,6 @@ angular.module('theHiveControllers').controller('RootCtrl', name: 'unread-alert-count' } }, - guard: UtilsSrv.hasAddDeleteEvents, onUpdate: function (data) { $scope.unreadAlertCount = data; } diff --git a/frontend/app/scripts/controllers/alert/AlertListCtrl.js b/frontend/app/scripts/controllers/alert/AlertListCtrl.js index c53e33f3da..ef698f5404 100755 --- a/frontend/app/scripts/controllers/alert/AlertListCtrl.js +++ b/frontend/app/scripts/controllers/alert/AlertListCtrl.js @@ -262,11 +262,10 @@ self.menu.markAsUnread = temp.length === 1 && temp[0] === true; // TODO nadouani: don't rely on alert status - self.menu.createNewCase = temp.indexOf('Imported') === -1; - self.menu.mergeInCase = temp.indexOf('Imported') === -1; - - temp = _.without(_.uniq(_.pluck(self.selection, 'case')), null, undefined); + temp = _.without(_.uniq(_.pluck(self.selection, 'caseId')), null, undefined); + self.menu.createNewCase = temp.length === 0; + self.menu.mergeInCase = temp.length === 0; self.menu.delete = temp.length === 0; }; diff --git a/frontend/app/views/partials/case/case.alerts.html b/frontend/app/views/partials/case/case.alerts.html index 590976743b..2da03ea95b 100644 --- a/frontend/app/views/partials/case/case.alerts.html +++ b/frontend/app/views/partials/case/case.alerts.html @@ -4,21 +4,19 @@ -