Add old code, for reference.

beta
Philippe Pittoli 2024-02-20 17:52:26 +01:00
parent 07135d2ea3
commit 1b1c7e80c7
2 changed files with 10 additions and 0 deletions

3
drop/APIStuff.purs Normal file
View File

@ -0,0 +1,3 @@
maybeCurrentConnection <- H.gets _.wsInfo.connection
when (isJust maybeCurrentConnection) do
H.modify_ _ { wsInfo { connection = Nothing, reconnect = true } }

7
drop/ClassName.purs Normal file
View File

@ -0,0 +1,7 @@
btn_delete :: forall w i. (MouseEvent -> i) -> HH.HTML w i
btn_delete action
= HH.button
[ HE.onClick action
, HP.classes [ HH.ClassName "button is-small is-danger" ]
] [ HH.text "remove" ]