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
0a56148e
Commit
0a56148e
authored
Apr 03, 2023
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tree] Pinning debug
parent
3aef984f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Node.purs
src/Gargantext/Components/Forest/Tree/Node.purs
+5
-2
No files found.
src/Gargantext/Components/Forest/Tree/Node.purs
View file @
0a56148e
...
@@ -5,10 +5,11 @@ module Gargantext.Components.Forest.Tree.Node
...
@@ -5,10 +5,11 @@ module Gargantext.Components.Forest.Tree.Node
import Gargantext.Prelude
import Gargantext.Prelude
import DOM.Simple.Console (log2)
import Data.Array.NonEmpty as NArray
import Data.Array.NonEmpty as NArray
import Data.Foldable (intercalate)
import Data.Foldable (intercalate)
import Data.Maybe (Maybe(..), maybe)
import Data.Map as Map
import Data.Map as Map
import Data.Maybe (Maybe(..), maybe)
import Data.String.Regex as Regex
import Data.String.Regex as Regex
import Data.Tuple.Nested ((/\))
import Data.Tuple.Nested ((/\))
import Effect (Effect)
import Effect (Effect)
...
@@ -305,7 +306,9 @@ nodeSpanCpt = here.component "nodeSpan" cpt
...
@@ -305,7 +306,9 @@ nodeSpanCpt = here.component "nodeSpan" cpt
B.iconButton
B.iconButton
{ name: "anchor"
{ name: "anchor"
, className: "mainleaf__pin-icon"
, className: "mainleaf__pin-icon"
, callback: \_ -> T.modify_ (Map.insert (show session) id) boxes.pinnedTreeId
, callback: \_ -> do
log2 "[Pinning tree ID]" id
T.modify_ (Map.insert (show session) id) boxes.pinnedTreeId
, title: "Pin the tree to this node"
, title: "Pin the tree to this node"
, variant: Secondary
, variant: Secondary
, elevation: Level1
, elevation: Level1
...
...
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