'use strict';

angular.module('dgc.system.notification', ['ui.router']).constant('ColorCoding', {
    info: 'success',
    error: 'danger'
}).run(['$rootScope', 'NotificationService', function($rootScope, NotificationService) {
    $rootScope.$on('$locationChangeSuccess', function(evt, from, to) {
        if (from !== to) {
            NotificationService.reset();
        }
    });
}]);
