Commit 9fe7f7e4 authored by Karen Konou's avatar Karen Konou

[Tree] UI for pinning

parent b1f181e8
...@@ -304,17 +304,27 @@ nodeSpanCpt = here.component "nodeSpan" cpt ...@@ -304,17 +304,27 @@ nodeSpanCpt = here.component "nodeSpan" cpt
} [] } []
, ,
R2.when (showBox) $ R2.when (showBox) $
R.fragment [
B.iconButton B.iconButton
{ name: "flower-7" { name: "flower-7"
, className: "mainleaf__settings-icon" , className: "mainleaf__settings-icon"
, callback: \_ -> T.write_ true isBoxVisible , callback: \_ -> T.write_ true isBoxVisible
, title: , title:
"Each node of the Tree can perform some actions.\n" "Each node of the Tree can perform some actions.\n"
<> "Click here to execute one of them." <> "Click here to execute one of them."
, variant: Secondary , variant: Secondary
, elevation: Level1 , elevation: Level1
} }
,
B.iconButton
{ name: "anchor"
, className: "mainleaf__settings-icon"
, callback: \_ -> pure unit
, title: "Pin the tree to this node"
, variant: Secondary
, elevation: Level1
}
]
, ,
R.fragment $ flip map currentTasks' \task -> R.fragment $ flip map currentTasks' \task ->
......
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