[tasks] insert async task when performing documents from write nodes

parent c5a31f92
...@@ -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
......
...@@ -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'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment