1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

ui: Add request context for error flash

- webui: Update mailbox, attachment paths
This commit is contained in:
James Hillyerd
2018-12-15 20:16:20 -08:00
parent 6fd13a5215
commit caec5e7c17
12 changed files with 247 additions and 86 deletions

View File

@@ -156,7 +156,10 @@ update msg model =
SessionUpdated (Err error) ->
( model
, Cmd.none
, Session.SetFlash ("Error decoding session:\n" ++ D.errorToString error)
, Session.SetFlash
{ title = "Error decoding session"
, table = [ ( "Error", D.errorToString error ) ]
}
)
TimeZoneLoaded zone ->
@@ -214,7 +217,13 @@ changeRouteTo route model =
( newModel, newCmd, newSession ) =
case route of
Route.Unknown path ->
( model, Cmd.none, Session.SetFlash ("Unknown route requested: " ++ path) )
( model
, Cmd.none
, Session.SetFlash
{ title = "Unknown route requested"
, table = [ ( "Path", path ) ]
}
)
Route.Home ->
Home.init