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

ui: Ignore submit of empty mailbox input

This commit is contained in:
James Hillyerd
2019-02-18 13:04:21 -08:00
parent cd89d77d9f
commit 18b85877ab

View File

@@ -81,6 +81,10 @@ update msg model session =
)
OpenMailbox ->
if model.mailboxName == "" then
( model, session, Cmd.none )
else
( model
, session
, Route.pushUrl session.key (Route.Mailbox model.mailboxName)