Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
137
Issues
137
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
823e3dfc
Commit
823e3dfc
authored
Sep 25, 2024
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph legend] Fix node counts when dispalying all nodes
parent
90f53112
Pipeline
#6685
passed with stages
in 22 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
Legend.purs
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
+6
-11
No files found.
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
View file @
823e3dfc
...
@@ -175,11 +175,6 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
...
@@ -175,11 +175,6 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
)
)
# isJust
# isJust
countValue
= extractedNodeList
# A.length
# (nodeCount - _)
-- | Behaviors
-- | Behaviors
-- |
-- |
let
let
...
@@ -212,7 +207,7 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
...
@@ -212,7 +207,7 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
]
]
,
,
R2.when (eq
countValue
0) $
R2.when (eq
nodeCount
0) $
H.li
H.li
{ className: intercalate " "
{ className: intercalate " "
...
@@ -221,10 +216,10 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
...
@@ -221,10 +216,10 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
]
]
}
}
[
[
H.text "0 node"
H.text "0 node
s
"
]
]
,
,
R2.when (not $ eq
countValue
0) $
R2.when (not $ eq
nodeCount
0) $
H.li
H.li
{ className: intercalate " "
{ className: intercalate " "
...
@@ -233,14 +228,14 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
...
@@ -233,14 +228,14 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
]
]
}
}
[
[
H.text "
+
"
H.text "
|
"
,
,
H.text $ nbsp 1
H.text $ nbsp 1
,
,
H.text $ show
countValue
H.text $ show
nodeCount
,
,
H.text $ nbsp 1
H.text $ nbsp 1
,
,
H.text $ eq
countValue
1 ? "node" $ "nodes"
H.text $ eq
nodeCount
1 ? "node" $ "nodes"
]
]
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment