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
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
aefaa024
Commit
aefaa024
authored
Nov 10, 2022
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Teams folders] Deactivate up button to shared or teams
parent
29314b69
Pipeline
#3370
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
FolderView.purs
src/Gargantext/Components/FolderView.purs
+12
-6
No files found.
src/Gargantext/Components/FolderView.purs
View file @
aefaa024
...
@@ -126,7 +126,7 @@ folderViewMainCpt = here.component "folderViewMainCpt" cpt where
...
@@ -126,7 +126,7 @@ folderViewMainCpt = here.component "folderViewMainCpt" cpt where
}
}
]
]
where
where
disabled { node_type } =
if node_type == GT.FolderShared then true else false
disabled { node_type } =
node_type == GT.FolderShared || node_type == GT.Team
makeParentFolder _ Nothing _ = []
makeParentFolder _ Nothing _ = []
sortFolders :: TreeNode-> TreeNode -> Ordering
sortFolders :: TreeNode-> TreeNode -> Ordering
...
@@ -166,6 +166,11 @@ folderCpt = here.component "folderCpt" cpt where
...
@@ -166,6 +166,11 @@ folderCpt = here.component "folderCpt" cpt where
boxes <- AppStore.use
boxes <- AppStore.use
isBoxVisible <- T.useBox false
isBoxVisible <- T.useBox false
-- | Hooks
-- |
{ goToRoute } <- useLinkHandler
-- | Computed
-- | Computed
-- |
-- |
...
@@ -180,9 +185,10 @@ folderCpt = here.component "folderCpt" cpt where
...
@@ -180,9 +185,10 @@ folderCpt = here.component "folderCpt" cpt where
H.div
H.div
{ className: "folder-view-item" }
{ className: "folder-view-item" }
[
[
H.
a
H.
button
{ className: "folder-view-item__body"
{ className: "folder-view-item__body"
, href: "/#/" <> href linkId rootId linkNodeType sid
, disabled: disabled
, on: { click: goToRoute $ href linkId rootId linkNodeType sid }
}
}
[
[
B.ripple
B.ripple
...
@@ -235,10 +241,10 @@ folderCpt = here.component "folderCpt" cpt where
...
@@ -235,10 +241,10 @@ folderCpt = here.component "folderCpt" cpt where
]
]
]
]
href :: Int -> Int -> NodeType -> SessionId ->
String
href :: Int -> Int -> NodeType -> SessionId ->
AppRoute
href lId rootId nType sId
href lId rootId nType sId
| rootId == lId =
appPath
Home
| rootId == lId = Home
| otherwise =
appPath $
getFolderPath nType sId lId
| otherwise = getFolderPath nType sId lId
icon :: FolderStyle -> GT.NodeType -> String
icon :: FolderStyle -> GT.NodeType -> String
icon FolderUp _ = "folder-open"
icon FolderUp _ = "folder-open"
...
...
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