1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

ui: Truncate monitor after 500 messages, closes #87

This commit is contained in:
James Hillyerd
2019-01-01 13:48:41 -08:00
parent f47e2cfcc2
commit 6287f5fe9c

View File

@@ -49,7 +49,7 @@ update msg model =
MessageReceived value ->
case D.decodeValue (MessageHeader.decoder |> D.at [ "detail" ]) value of
Ok header ->
( { model | messages = header :: model.messages }
( { model | messages = header :: List.take 500 model.messages }
, Cmd.none
)