[graph] add count of documents to sidebar

parent 5f83b235
......@@ -263,7 +263,8 @@ initialPageGQL { corpusId, ngramsTerms, session } =
loadPageGQL :: Record PageGQLParams -> AffRESTError Rows
loadPageGQL { corpusId
, params: { limit, offset, orderBy }
-- NOTE: unused
-- , params: { limit, offset, orderBy }
, ngramsTerms
, session } = do
......
......@@ -239,23 +239,27 @@ docListCpt = here.component "main" cpt where
,
R2.when (not $ eq results Seq.empty) $
H.ul
{ className: intercalate " "
[ "graph-doc-list"
, "list-group"
]
} $
Seq.toUnfoldable $ flip Seq.map results \r ->
item
{ documentView: (r :: DocumentsView)
, callback: callback showDoc'
, isSelected: isSelected showDoc' (r :: DocumentsView)
, listId
, corpusId: nodeId
, session
, frontends
}
H.div {}
[
H.h6 {} [ H.text $ show (Seq.length results) <> " related documents"]
, H.ul
{ className: intercalate " "
[ "graph-doc-list"
, "list-group"
]
} $
Seq.toUnfoldable $ flip Seq.map results \r ->
item
{ documentView: (r :: DocumentsView)
, callback: callback showDoc'
, isSelected: isSelected showDoc' (r :: DocumentsView)
, listId
, corpusId: nodeId
, session
, frontends
}
]
]
......
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