Display higher severity status checks first
[civicrm-core.git] / ang / crmStatusPage / StatusPageServices.js
index 0173484b5cb930acdbe3f3186c9e6dfa8b2d8109..e895d8979caa77e01267cf254dc9d710abd343a8 100644 (file)
@@ -1,16 +1,12 @@
 (function(angular, $, _) {
 
-  angular.module('statuspage')
+  angular.module('crmStatusPage')
     .filter('trusted', function($sce){ return $sce.trustAsHtml; })
 
-    .service('statuspageSeverityList', function() {
-      return ['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency'];
-    })
-
     // Todo: abstract this into a generic crmUi directive?
     .directive('statuspagePopupMenu', function($timeout) {
       return {
-        templateUrl: '~/statuspage/SnoozeOptions.html',
+        templateUrl: '~/crmStatusPage/SnoozeOptions.html',
         transclude: true,
 
         link: function(scope, element, attr) {
@@ -27,7 +23,7 @@
           // TODO: Is there a more "Angular" way to do this animation?
           element.on('click', 'button:not(.hush-menu-button), li', function() {
             $(this).closest('div.crm-status-item').slideUp();
-          })
+          });
         }
       };
     });