From 15fa6be7eba1ed9f8968f99f890e8db0a517fd6c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 30 Mar 2016 22:13:43 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/services/statusbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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? -- 2.43.2