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
c53119e0
Commit
c53119e0
authored
Jun 28, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] subtree
parent
79910d34
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
Action.purs
src/Gargantext/Components/Forest/Tree/Node/Action.purs
+3
-1
Link.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Link.purs
+3
-3
Merge.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
+3
-3
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action.purs
View file @
c53119e0
...
...
@@ -44,6 +44,8 @@ subTreeOut _ = Nothing
setTreeOut :: Action -> Maybe SubTreeOut -> Action
setTreeOut (MoveNode {params:_}) p = MoveNode {params: p}
setTreeOut (MergeNode {params:_}) p = MergeNode {params: p}
setTreeOut (LinkNode {params:_}) p = LinkNode {params: p}
setTreeOut a _ = a
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Link.purs
View file @
c53119e0
...
...
@@ -22,11 +22,11 @@ linkNodeReq session fromId toId =
linkNode :: Record SubTreeParamsIn -> R.Hooks R.Element
linkNode p@{dispatch, subTreeParams, id, nodeType, session} = do
action@(valAction /\ setAction) :: R.State Action <- R.useState' (
Move
Node {params:Nothing})
action@(valAction /\ setAction) :: R.State Action <- R.useState' (
Link
Node {params:Nothing})
let button = case valAction of
Move
Node {params} -> case params of
Just val -> submitButton (
Move
Node {params: Just val}) dispatch
Link
Node {params} -> case params of
Just val -> submitButton (
Link
Node {params: Just val}) dispatch
Nothing -> H.div {} []
_ -> H.div {} []
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
View file @
c53119e0
...
...
@@ -22,14 +22,14 @@ mergeNodeReq session fromId toId =
mergeNode :: Record SubTreeParamsIn -> R.Hooks R.Element
mergeNode p@{dispatch, subTreeParams, id, nodeType, session} = do
action@(valAction /\ setAction) :: R.State Action <- R.useState' (M
ov
eNode {params:Nothing})
action@(valAction /\ setAction) :: R.State Action <- R.useState' (M
erg
eNode {params:Nothing})
merge <- R.useState' false
options <- R.useState' (Set.singleton GT.MapTerm)
let button = case valAction of
M
ov
eNode {params} -> case params of
Just val -> submitButton (M
ov
eNode {params: Just val}) dispatch
M
erg
eNode {params} -> case params of
Just val -> submitButton (M
erg
eNode {params: Just val}) dispatch
Nothing -> H.div {} []
_ -> H.div {} []
...
...
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