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
...
@@ -244,9 +244,8 @@ panelActionCpt = R.hooksComponent "G.C.F.T.N.B.panelAction" cpt
cpt {action: Move {subTreeParams}, dispatch, id, nodeType, session} _ = do
cpt {action: Move {subTreeParams}, dispatch, id, nodeType, session} _ = do
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
cpt {action: Link _} _ = pure $ fragmentPT $ "Soon, you will be able "
cpt {action: Link {subTreeParams}, dispatch, id, nodeType, session} _ = do
<> "to link the corpus with your Annuaire"
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
<> " (and reciprocally)."
cpt {action : Share, dispatch, id, name } _ = do
cpt {action : Share, dispatch, id, name } _ = do
isOpen <- R.useState' true
isOpen <- R.useState' true
...
...
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
View file @
5a5f5594
...
@@ -25,8 +25,8 @@ data NodeAction = Documentation NodeType
...
@@ -25,8 +25,8 @@ data NodeAction = Documentation NodeType
| Add (Array NodeType)
| Add (Array NodeType)
| Merge { subTreeParams :: SubTreeParams }
| Merge { subTreeParams :: SubTreeParams }
| Move { subTreeParams :: SubTreeParams }
| Move { subTreeParams :: SubTreeParams }
| Link { subTreeParams :: SubTreeParams }
| Clone
| Clone
| Link NodeType
------------------------------------------------------------------------
------------------------------------------------------------------------
-- TODO move elsewhere
-- TODO move elsewhere
...
@@ -174,7 +174,18 @@ settingsBox Corpus =
...
@@ -174,7 +174,18 @@ settingsBox Corpus =
, Download
, Download
, Move moveParameters
, Move moveParameters
--, Clone
--, Clone
, Link Annuaire
, Link { subTreeParams : SubTreeParams
{ showtypes: [ FolderPrivate
, FolderShared
, Team
, FolderPublic
, Folder
, Annuaire
]
, valitypes: [ Annuaire
]
}
}
, Delete
, Delete
]
]
}
}
...
@@ -259,7 +270,7 @@ moveParameters = { subTreeParams : SubTreeParams
...
@@ -259,7 +270,7 @@ moveParameters = { subTreeParams : SubTreeParams
]
]
, valitypes: [ FolderPrivate
, valitypes: [ FolderPrivate
, FolderShared
, FolderShared
, Team
, Team
, FolderPublic
, FolderPublic
, Folder
, 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