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
83b85e8a
Verified
Commit
83b85e8a
authored
Mar 06, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tasks] insert async task when performing documents from write nodes
parent
c5a31f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+4
-2
WriteNodesDocuments.purs
...mponents/Forest/Tree/Node/Action/WriteNodesDocuments.purs
+2
-2
No files found.
src/Gargantext/Components/Forest/Tree.purs
View file @
83b85e8a
...
@@ -384,9 +384,11 @@ linkNode nodeType params p@{ boxes: { errors }, session } = traverse_ f params w
...
@@ -384,9 +384,11 @@ linkNode nodeType params p@{ boxes: { errors }, session } = traverse_ f params w
handleRESTError errors eTask $ \_task -> pure unit
handleRESTError errors eTask $ \_task -> pure unit
refreshTree p
refreshTree p
documentsFromWriteNodes params p@{ boxes: { errors
}, session
} = do
documentsFromWriteNodes params p@{ boxes: { errors
, tasks }, session, tree: NTree (LNode { id }) _
} = do
eTask <- documentsFromWriteNodesReq session params
eTask <- documentsFromWriteNodesReq session params
handleRESTError errors eTask $ \_task -> pure unit
handleRESTError errors eTask $ \task -> liftEffect $ do
GAT.insert id task tasks
pure unit
refreshTree p
refreshTree p
-- | This thing is basically a hangover from when garg was a thermite
-- | This thing is basically a hangover from when garg was a thermite
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/WriteNodesDocuments.purs
View file @
83b85e8a
...
@@ -45,7 +45,7 @@ actionWriteNodesDocumentsCpt = here.component "actionWriteNodesDocuments" cpt wh
...
@@ -45,7 +45,7 @@ actionWriteNodesDocumentsCpt = here.component "actionWriteNodesDocuments" cpt wh
<- R2.useBox' ListSelection.MyListsFirst
<- R2.useBox' ListSelection.MyListsFirst
paragraphs' /\ paragraphBox
paragraphs' /\ paragraphBox
<- R2.useBox' "7"
<- R2.useBox' "7"
let bodies = [
let bodies = [
H.div
H.div
{ className: "col-12 flex-space-around" }
{ className: "col-12 flex-space-around" }
...
@@ -90,7 +90,7 @@ actionWriteNodesDocumentsCpt = here.component "actionWriteNodesDocuments" cpt wh
...
@@ -90,7 +90,7 @@ actionWriteNodesDocumentsCpt = here.component "actionWriteNodesDocuments" cpt wh
H.div
H.div
{ className: "form-group__field" }
{ className: "form-group__field" }
[
[
B.formInput
B.formInput
{ callback: flip T.write_ paragraphBox
{ callback: flip T.write_ paragraphBox
, value: paragraphs'
, value: paragraphs'
}
}
...
...
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