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
740e7237
Commit
740e7237
authored
Jun 09, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFACT|Types] type name conflict (search and action)
parent
8096c7db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+2
-2
Action.purs
src/Gargantext/Components/Forest/Tree/Node/Action.purs
+3
-3
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+1
-1
No files found.
src/Gargantext/Components/Forest/Tree.purs
View file @
740e7237
...
...
@@ -187,9 +187,9 @@ performAction p@{ openNodes: (_ /\ setOpenNodes)
performAction { reload: (_ /\ setReload)
, session
, tasks: { onTaskAdd }
, tree: (NTree (LNode {id}) _) } (
SearchQuery
task) = do
, tree: (NTree (LNode {id}) _) } (
DoSearch
task) = do
liftEffect $ onTaskAdd task
liftEffect $ log2 "[performAction]
SearchQuery
task:" task
liftEffect $ log2 "[performAction]
DoSearch
task:" task
performAction { reload: (_ /\ setReload)
, session
...
...
src/Gargantext/Components/Forest/Tree/Node/Action.purs
View file @
740e7237
...
...
@@ -19,7 +19,7 @@ data Action = AddNode String GT.NodeType
| DeleteNode
| UpdateNode GT.AsyncTaskWithType
| RenameNode String
|
SearchQuery
GT.AsyncTaskWithType
|
DoSearch
GT.AsyncTaskWithType
| UploadFile GT.NodeType FileType (Maybe String) UploadFileContents
| RefreshTree
| ShareNode String
...
...
@@ -31,7 +31,7 @@ instance showShow :: Show Action where
show (ShareNode _) = "ShareNode"
show (UpdateNode _) = "UpdateNode"
show (RenameNode _) = "RenameNode"
show (
SearchQuery
_) = "SearchQuery"
show (
DoSearch
_) = "SearchQuery"
show (AddNode _ _) = "AddNode"
show (UploadFile _ _ _ _)= "UploadFile"
...
...
@@ -51,7 +51,7 @@ text DeleteNode = "Delete !"
text (AddNode _ _) = "Add !"
text (UpdateNode _) = "Update !"
text (RenameNode _) = "Rename !"
text (
SearchQuery
_) = "Launch search !"
text (
DoSearch
_) = "Launch search !"
text (UploadFile _ _ _ _)= "Upload File !"
text RefreshTree = "Refresh Tree !"
text (ShareNode _) = "Share !"
...
...
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
740e7237
...
...
@@ -625,7 +625,7 @@ actionSearch search session dispatch nodePopup =
-> GT.AsyncTaskWithType
-> Effect Unit
searchOn dispatch p task = do
_ <- launchAff $ dispatch (
SearchQuery
task)
_ <- launchAff $ dispatch (
DoSearch
task)
-- close popup
-- TODO
--snd p $ const Nothing
...
...
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