(feat) new Alarm service + alarms support in all modules

This commit is contained in:
Ludovic Marcotte
2015-07-28 11:54:49 -04:00
parent e8dcc6df37
commit 7365f77dd5
6 changed files with 152 additions and 11 deletions
@@ -9,8 +9,8 @@
/**
* @ngInject
*/
navController.$inject = ['$scope', '$timeout', '$interval', '$http', '$mdSidenav', '$mdBottomSheet', '$mdMedia', '$log', 'sgConstant', 'sgSettings'];
function navController($scope, $timeout, $interval, $http, $mdSidenav, $mdBottomSheet, $mdMedia, $log, sgConstant, sgSettings) {
navController.$inject = ['$scope', '$timeout', '$interval', '$http', '$mdSidenav', '$mdBottomSheet', '$mdMedia', '$log', 'sgConstant', 'sgSettings', 'Alarm'];
function navController($scope, $timeout, $interval, $http, $mdSidenav, $mdBottomSheet, $mdMedia, $log, sgConstant, sgSettings, Alarm) {
$scope.activeUser = sgSettings.activeUser;
@@ -52,6 +52,8 @@
}, function(newVal) {
$scope.isGtMedium = newVal;
});
Alarm.getAlarms();
}
angular.module('SOGo.Common')