mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 14:15:33 +03:00
Show deleting button text when transitioning.
This commit is contained in:
parent
da4b651bb0
commit
7ae7932e8b
@ -183,7 +183,14 @@ deleteForm =
|
||||
[ Html.button
|
||||
[ Attr.style "color" "red"
|
||||
]
|
||||
[ Html.text "Delete" ]
|
||||
[ (if formState.isTransitioning then
|
||||
"Deleting..."
|
||||
|
||||
else
|
||||
"Delete"
|
||||
)
|
||||
|> Html.text
|
||||
]
|
||||
]
|
||||
}
|
||||
|> Form.hiddenKind ( "kind", "delete" ) "Required"
|
||||
|
Loading…
Reference in New Issue
Block a user