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
23f52455
Commit
23f52455
authored
May 31, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/399-dev-multiple-trees-rc0.x' into dev
parents
32f6d3fd
b20772b2
Changes
2
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 @
23f52455
...
@@ -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 @
23f52455
...
@@ -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