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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
b4764a1a
Commit
b4764a1a
authored
Jul 18, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] warnings
parent
519b4c37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+12
-12
No files found.
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
b4764a1a
...
...
@@ -122,25 +122,25 @@ sideTab (Opened SideTabSelection) props =
, checked: true
, title: "Mark as completed" } ]
removeButton text rType props
nodesMap
=
if Set.isEmpty $ fst props.selectedNodeIds then
removeButton text rType props
' nodesMap'
=
if Set.isEmpty $ fst props
'
.selectedNodeIds then
RH.div {} []
else
RH.button { className: "btn btn-danger"
, on: { click: onClickRemove rType props
nodesMap
}}
, on: { click: onClickRemove rType props
' nodesMap'
}}
[ RH.text text ]
onClickRemove rType props
nodesMap
e = do
let nodes = mapMaybe (\id -> Map.lookup id nodesMap)
$ Set.toUnfoldable $ fst props.selectedNodeIds
deleteNodes { graphId: props.graphId
, metaData: props.metaData
onClickRemove rType props
' nodesMap'
e = do
let nodes = mapMaybe (\id -> Map.lookup id nodesMap
'
)
$ Set.toUnfoldable $ fst props
'
.selectedNodeIds
deleteNodes { graphId: props
'
.graphId
, metaData: props
'
.metaData
, nodes
, session: props.session
, session: props
'
.session
, termList: rType
, treeReload: props.treeReload }
snd props
.removedNodeIds $ const $ fst props
.selectedNodeIds
snd props.selectedNodeIds $ const SigmaxT.emptyNodeIds
, treeReload: props
'
.treeReload }
snd props
'.removedNodeIds $ const $ fst props'
.selectedNodeIds
snd props
'
.selectedNodeIds $ const SigmaxT.emptyNodeIds
...
...
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