only show latest warning, rather than combining warning alerts

In the case of the inotify limit warning, particularly, if it happens once
it will be happening repeatedly, and so combining alerts resulted in a
much too large alert message that took up a lot of memory and was too
large for the webapp to display.
This commit is contained in:
Joey Hess 2013-04-24 11:27:30 -04:00
parent 9f305483b0
commit e72f0b2898

View file

@ -66,7 +66,7 @@ warningAlert name msg = Alert
, alertClosable = True
, alertPriority = High
, alertIcon = Just ErrorIcon
, alertCombiner = Just $ dataCombiner (++)
, alertCombiner = Just $ dataCombiner $ \_old new -> new
, alertName = Just $ WarningAlert name
, alertButton = Nothing
}