The messages array was fighting with ngToast's
messages array... and winning.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
restrict : 'AE',
replace : true,
templateUrl : 'eg-status-bar-template',
+ scope : { },
controller : [
'$scope','$rootScope','egHatch',
function($scope , $rootScope , egHatch) {
}
$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?