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
24d2b4d5
Commit
24d2b4d5
authored
Jun 21, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFACT|FEAT] Move with params to Folders/Corpus/Annuaire (WIP)
parent
d7a3bac1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+3
-0
Settings.purs
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
+25
-7
No files found.
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
24d2b4d5
...
...
@@ -241,6 +241,9 @@ panelActionCpt = R.hooksComponent "G.C.F.T.N.B.panelAction" cpt
cpt {action: Merge {subTreeParams}, dispatch, id, nodeType, session} _ = do
pure $ copyFromCorpusView {dispatch, id, nodeType, session, subTreeParams}
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)."
...
...
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
View file @
24d2b4d5
...
...
@@ -24,7 +24,7 @@ data NodeAction = Documentation NodeType
| Share
| Add (Array NodeType)
| Merge { subTreeParams :: SubTreeParams }
| Move
| Move
{ subTreeParams :: SubTreeParams }
| Clone
| Link NodeType
...
...
@@ -47,7 +47,7 @@ instance eqNodeAction :: Eq NodeAction where
eq Download Download = true
eq Upload Upload = true
eq Refresh Refresh = true
eq
Move Move = true
eq
(Move x) (Move y) = x == y
eq Clone Clone = true
eq Delete Delete = true
eq Share Share = true
...
...
@@ -63,7 +63,7 @@ instance showNodeAction :: Show NodeAction where
show Download = "Download"
show Upload = "Upload"
show Refresh = "Refresh"
show
Move = "Move"
show
(Move t) = "Move with subtree params" <> show t
show Clone = "Clone"
show Delete = "Delete"
show Share = "Share"
...
...
@@ -85,7 +85,7 @@ glyphiconNodeAction (Merge _) = "random"
glyphiconNodeAction Refresh = "refresh"
glyphiconNodeAction Config = "wrench"
glyphiconNodeAction Share = "user-plus"
glyphiconNodeAction
Move
= "share-square-o"
glyphiconNodeAction
(Move _)
= "share-square-o"
glyphiconNodeAction _ = ""
...
...
@@ -156,7 +156,7 @@ settingsBox Folder =
, Folder
, Annuaire
]
, Move
, Move
moveParameters
, Delete
]
}
...
...
@@ -172,7 +172,7 @@ settingsBox Corpus =
, SearchBox
, Upload
, Download
, Move
, Move
moveParameters
--, Clone
, Link Annuaire
, Delete
...
...
@@ -238,7 +238,7 @@ settingsBox Annuaire =
, edit : true
, doc : Documentation Annuaire
, buttons : [ Upload
, Move
, Move
moveParameters
, Delete
]
}
...
...
@@ -249,3 +249,21 @@ settingsBox _ =
, doc : Documentation NodeUser
, buttons : []
}
moveParameters = { subTreeParams : SubTreeParams
{ showtypes: [ FolderPrivate
, FolderShared
, Team
, FolderPublic
, Folder
]
, valitypes: [ FolderPrivate
, FolderShared
, 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