Commit 06818ad1 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[folderView] some refactoring

parent 23b46f92
...@@ -166,29 +166,35 @@ folderCpt = here.component "folderCpt" cpt where ...@@ -166,29 +166,35 @@ folderCpt = here.component "folderCpt" cpt where
R.setRef setPopoverRef $ Just $ Popover.setOpen popoverRef R.setRef setPopoverRef $ Just $ Popover.setOpen popoverRef
pure $ pure $
H.div {} [ H.div {}
H.span{style: {position: "absolute"}} [ Popover.popover { [ H.span { style: { position: "absolute" } }
arrow: false [ Popover.popover {
, open: false arrow: false
, onClose: \_ -> pure unit , open: false
, onOpen: \_ -> pure unit , onClose: \_ -> pure unit
, ref: popoverRef , onOpen: \_ -> pure unit
} [ , ref: popoverRef
popOverIcon }
, mNodePopupView (Record.merge props { dispatch }) (onPopoverClose popoverRef) [ popOverIcon
]] , mNodePopupView (Record.merge props { dispatch }) (onPopoverClose popoverRef)
, H.button {on: {click: \_ -> goToRoute $ route linkId rootId linkNodeType sid }, className: "btn btn-primary fv btn" } [ ]
H.i {className: icon style nodeType} [] ]
, H.br {} , H.button { className: "btn btn-primary fv btn"
, H.text text]] , on: {click: \_ -> goToRoute $ route linkId rootId linkNodeType sid }
}
[ H.i {className: icon style nodeType} []
, H.br {}
, H.text text
]
]
onPopoverClose popoverRef _ = Popover.setOpen popoverRef false onPopoverClose popoverRef _ = Popover.setOpen popoverRef false
popOverIcon = H.span { className: "fv action" } [ popOverIcon = H.span { className: "fv action" }
H.a { className: "settings fa fa-cog" [ H.a { className: "settings fa fa-cog"
, title : "Each node of the Tree can perform some actions.\n" , title : "Each node of the Tree can perform some actions.\n"
<> "Click here to execute one of them." } [] <> "Click here to execute one of them." } []
] ]
mNodePopupView props opc = nodePopupView { boxes: props.boxes mNodePopupView props opc = nodePopupView { boxes: props.boxes
, dispatch: props.dispatch , dispatch: props.dispatch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment