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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
gargantext
purescript-gargantext
Commits
60edf362
Commit
60edf362
authored
Nov 18, 2024
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unpublish is now called unshare
This follows the changes required for:
haskell-gargantext!366
parent
6b2fdd33
Pipeline
#6984
passed with stages
in 16 minutes and 54 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
FolderView.purs
src/Gargantext/Components/FolderView.purs
+2
-2
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+2
-2
Delete.purs
...Gargantext/Components/Forest/Tree/Node/Action/Delete.purs
+2
-2
No files found.
src/Gargantext/Components/FolderView.purs
View file @
60edf362
...
...
@@ -16,7 +16,7 @@ import Gargantext.Components.Bootstrap.BaseModal (hideModal)
import Gargantext.Components.Bootstrap.Types (Elevation(..), Variant(..))
import Gargantext.Components.Forest.Tree.Node.Action.Add (AddNodeValue(..), addNode)
import Gargantext.Components.Forest.Tree.Node.Action.Contact as Contact
import Gargantext.Components.Forest.Tree.Node.Action.Delete (deleteNode, un
publish
Node)
import Gargantext.Components.Forest.Tree.Node.Action.Delete (deleteNode, un
share
Node)
import Gargantext.Components.Forest.Tree.Node.Action.Link (linkNodeReq)
import Gargantext.Components.Forest.Tree.Node.Action.Merge (mergeNodeReq)
import Gargantext.Components.Forest.Tree.Node.Action.Move (moveNodeReq)
...
...
@@ -361,7 +361,7 @@ performAction = performAction' where
deleteNode' nt p@{ nodeId: id, parentId: parent_id, session } = do
case nt of
NodePublic FolderPublic -> void $ deleteNode session id
NodePublic _ -> void $ un
publish
Node session (Just parent_id) id
NodePublic _ -> void $ un
share
Node session (Just parent_id) id
_ -> void $ deleteNode session id
refreshFolders p
...
...
src/Gargantext/Components/Forest/Tree.purs
View file @
60edf362
...
...
@@ -17,7 +17,7 @@ import Gargantext.Components.Bootstrap as B
import Gargantext.Components.Forest.Tree.Node (blankNodeSpan, nodeSpan)
import Gargantext.Components.Forest.Tree.Node.Action.Add (AddNodeValue(..), addNode)
import Gargantext.Components.Forest.Tree.Node.Action.Contact as Contact
import Gargantext.Components.Forest.Tree.Node.Action.Delete (deleteNode, un
publish
Node)
import Gargantext.Components.Forest.Tree.Node.Action.Delete (deleteNode, un
share
Node)
import Gargantext.Components.Forest.Tree.Node.Action.Link (linkNodeReq)
import Gargantext.Components.Forest.Tree.Node.Action.Merge (mergeNodeReq)
import Gargantext.Components.Forest.Tree.Node.Action.Move (moveNodeReq)
...
...
@@ -373,7 +373,7 @@ refreshTree p@{ reloadTree } = liftEffect $ closeBox p *> T2.reload reloadTree
deleteNode' nt p@{ boxes: { forestOpen }, session, tree: (NTree (LNode {id, parent_id}) _) } = do
case nt of
GT.NodePublic GT.FolderPublic -> void $ deleteNode session id
GT.NodePublic _ -> void $ un
publish
Node session parent_id id
GT.NodePublic _ -> void $ un
share
Node session parent_id id
_ -> void $ deleteNode session id
liftEffect $ T.modify_ (openNodesDelete (mkNodeId session id)) forestOpen
refreshTree p
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Delete.purs
View file @
60edf362
...
...
@@ -32,8 +32,8 @@ deleteNode session nodeId = delete session $ NodeAPI GT.Node (Just nodeId) ""
-}
type ParentID = GT.ID
un
publish
Node :: Session -> Maybe ParentID -> GT.ID -> AffRESTError GT.ID
un
publishNode s p n = put_ s $ NodeAPI GT.Node p ("unpublish
/" <> show n)
un
share
Node :: Session -> Maybe ParentID -> GT.ID -> AffRESTError GT.ID
un
shareNode s p n = put_ s $ NodeAPI GT.Node p ("unshare
/" <> show n)
-- | Action : Delete
...
...
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