1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix number of remaining notifications

This commit is contained in:
Sylvain 2017-01-02 15:56:52 +01:00
parent 1f0da1194b
commit a39be14718

View File

@ -277,7 +277,7 @@ Application.Controllers.controller 'ApplicationController', ["$rootScope", "$sco
remain = 3
if diff.length >= remain
diff.splice(remain, (diff.length - remain), {message: {description: _t('and_NUMBER_other_notifications', {NUMBER: diff.length - remain})}})
diff.splice(remain, (diff.length - remain), {message: {description: _t('and_NUMBER_other_notifications', {NUMBER: diff.length - remain + 1})}})
angular.forEach diff, (notification, key) ->
growl.info(notification.message.description)