mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
ui: Mailbox purge prompts for confirmation
This commit is contained in:
@@ -298,13 +298,15 @@ view model =
|
||||
framePage :
|
||||
ActivePage
|
||||
-> (msg -> Msg)
|
||||
-> { title : String, content : Html msg }
|
||||
-> { title : String, modal : Maybe (Html msg), content : Html msg }
|
||||
-> Document Msg
|
||||
framePage page toMsg { title, content } =
|
||||
framePage page toMsg { title, modal, content } =
|
||||
Document title
|
||||
[ content
|
||||
|> Html.map toMsg
|
||||
|> Page.frame controls model.session page
|
||||
[ Page.frame controls
|
||||
model.session
|
||||
page
|
||||
(Maybe.map (Html.map toMsg) modal)
|
||||
(Html.map toMsg content)
|
||||
]
|
||||
in
|
||||
case model.page of
|
||||
|
||||
Reference in New Issue
Block a user