Commit 8171d1e9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERGO] add button closer and MapTerm as default

parent f23d8eb9
...@@ -156,19 +156,21 @@ tableContainerCpt { dispatch ...@@ -156,19 +156,21 @@ tableContainerCpt { dispatch
[ H.div {className: "panel-heading"} [ H.div {className: "panel-heading"}
[ [
R2.row [ H.div {className: "col-md-2", style: {marginTop: "6px"}} R2.row [ H.div {className: "col-md-2", style: {marginTop: "6px"}}
[ H.div {} syncResetButton [ if A.null props.tableBody && searchQuery /= ""
, if A.null props.tableBody && searchQuery /= "" then then H.li { className: "list-group-item" }
H.li { className: "list-group-item" } [ [ H.button { className: "btn btn-primary"
H.button { className: "btn btn-primary" , on: { click : const
, on: { click: const $ dispatch $ dispatch
$ CoreAction $ CoreAction
$ addNewNgramA $ addNewNgramA
(normNgram tabNgramType searchQuery) (normNgram tabNgramType searchQuery)
CandidateTerm MapTerm
} }
} }
[ H.text ("Add " <> searchQuery) ] [ H.text ("Add " <> searchQuery) ]
] else H.div {} [] ]
else H.div {} []
, H.div {} syncResetButton
] ]
, H.div {className: "col-md-2", style: {marginTop : "6px"}} , H.div {className: "col-md-2", style: {marginTop : "6px"}}
[ H.li {className: "list-group-item"} [ H.li {className: "list-group-item"}
......
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