Add old code, for reference.
This commit is contained in:
parent
07135d2ea3
commit
1b1c7e80c7
3
drop/APIStuff.purs
Normal file
3
drop/APIStuff.purs
Normal 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
7
drop/ClassName.purs
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user