From: Galen Charlton Date: Thu, 31 Mar 2016 02:13:43 +0000 (-0400) Subject: LP#1570091: webstaff: isolate the scope of eg-status-bar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=15fa6be7eba1ed9f8968f99f890e8db0a517fd6c;p=evergreen%2Fmasslnc.git LP#1570091: 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 Signed-off-by: Bill Erickson --- 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?