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
142
Issues
142
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
b20772b2
Commit
b20772b2
authored
May 27, 2022
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sidebar] Multiple trees opening/closing issue
*
#399
parent
fa4d3a5b
Pipeline
#2875
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
Forest.purs
src/Gargantext/Components/Forest.purs
+9
-6
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+4
-3
No files found.
src/Gargantext/Components/Forest.purs
View file @
b20772b2
...
@@ -61,12 +61,15 @@ forestLayoutCpt = here.component "forest" cpt where
...
@@ -61,12 +61,15 @@ forestLayoutCpt = here.component "forest" cpt where
H.div
H.div
{ className: "forest-layout__tree" }
{ className: "forest-layout__tree" }
[
[
treeLoader { boxes
treeLoader
, frontends
{ boxes
, handed: handed'
, frontends
, reload: reloadForest
, handed: handed'
, root: treeId
, reload: reloadForest
, session: s } []
, root: treeId
, session: s
, key: "tree-" <> (show treeId)
}
]
]
type Plus = ( boxes :: Boxes )
type Plus = ( boxes :: Boxes )
...
...
src/Gargantext/Components/Forest/Tree.purs
View file @
b20772b2
...
@@ -106,9 +106,10 @@ type PerformActionProps =
...
@@ -106,9 +106,10 @@ type PerformActionProps =
| PACommon )
| PACommon )
-- | Loads and renders the tree starting at the given root node id.
-- | Loads and renders the tree starting at the given root node id.
treeLoader :: R2.Component LoaderProps
treeLoader :: R2.Leaf ( key :: String | LoaderProps )
treeLoader = R.createElement treeLoaderCpt
treeLoader = R2.leaf treeLoaderCpt
treeLoaderCpt :: R.Component LoaderProps
treeLoaderCpt :: R.Component ( key :: String | LoaderProps )
treeLoaderCpt = here.component "treeLoader" cpt where
treeLoaderCpt = here.component "treeLoader" cpt where
-- treeLoaderCpt :: R.Memo LoaderProps
-- treeLoaderCpt :: R.Memo LoaderProps
-- treeLoaderCpt = R.memo (here.component "treeLoader" cpt) memoCmp where
-- treeLoaderCpt = R.memo (here.component "treeLoader" cpt) memoCmp where
...
...
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