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
5a5f5594
Commit
5a5f5594
authored
Jun 21, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFACT|FEAT] adding subtree to link action of corpus (WIP)
parent
24d2b4d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+2
-3
Settings.purs
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
+14
-3
No files found.
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
5a5f5594
...
...
@@ -244,9 +244,8 @@ panelActionCpt = R.hooksComponent "G.C.F.T.N.B.panelAction" cpt
cpt {action: Move {subTreeParams}, dispatch, id, nodeType, session} _ = do
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
cpt {action: Link _} _ = pure $ fragmentPT $ "Soon, you will be able "
<> "to link the corpus with your Annuaire"
<> " (and reciprocally)."
cpt {action: Link {subTreeParams}, dispatch, id, nodeType, session} _ = do
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
cpt {action : Share, dispatch, id, name } _ = do
isOpen <- R.useState' true
...
...
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
View file @
5a5f5594
...
...
@@ -25,8 +25,8 @@ data NodeAction = Documentation NodeType
| Add (Array NodeType)
| Merge { subTreeParams :: SubTreeParams }
| Move { subTreeParams :: SubTreeParams }
| Link { subTreeParams :: SubTreeParams }
| Clone
| Link NodeType
------------------------------------------------------------------------
-- TODO move elsewhere
...
...
@@ -174,7 +174,18 @@ settingsBox Corpus =
, Download
, Move moveParameters
--, Clone
, Link Annuaire
, Link { subTreeParams : SubTreeParams
{ showtypes: [ FolderPrivate
, FolderShared
, Team
, FolderPublic
, Folder
, Annuaire
]
, valitypes: [ Annuaire
]
}
}
, Delete
]
}
...
...
@@ -259,7 +270,7 @@ moveParameters = { subTreeParams : SubTreeParams
]
, valitypes: [ FolderPrivate
, FolderShared
, Team
, Team
, FolderPublic
, Folder
]
...
...
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