From: Galen Charlton Date: Thu, 31 Mar 2016 02:13:43 +0000 (-0400) Subject: webstaff: isolate the scope of eg-status-bar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=94888807ee8c9e319bec0659c50a702c2775e757;p=working%2FEvergreen.git webstaff: isolate the scope of eg-status-bar The messages array was fighting with ngToast's messages array... and winning. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/services/statusbar.js b/Open-ILS/web/js/ui/default/staff/services/statusbar.js index 29968f9108..8c7d1162fa 100644 --- a/Open-ILS/web/js/ui/default/staff/services/statusbar.js +++ b/Open-ILS/web/js/ui/default/staff/services/statusbar.js @@ -15,6 +15,7 @@ angular.module('egCoreMod') restrict : 'AE', replace : true, templateUrl : 'eg-status-bar-template', + scope : { }, controller : [ '$scope','$rootScope','egHatch', function($scope , $rootScope , egHatch) { @@ -49,7 +50,7 @@ angular.module('egCoreMod') } $rootScope.$on('egStatusBarMessage', function(evt, args) { - $scope.messages.unshift(args.message); + $scope.messages.unshift(args); // ensure the list does not exceed 10 messages // TODO: configurable?