Commit 1ce56e02 authored by Fabien Manière's avatar Fabien Manière

remove links on shared or private nodes

parent 4a3312e5
...@@ -260,21 +260,40 @@ breadcrumbItemCpt = here.component "breadcrumbItemCpt" cpt where ...@@ -260,21 +260,40 @@ breadcrumbItemCpt = here.component "breadcrumbItemCpt" cpt where
pure $ pure $
H.li { className: "breadcrumb-item" } H.li { className: "breadcrumb-item" }
[ [
H.a { className: "" if show nodeType == "NodeFolderPrivate"
, href: "/#/" <> createNodeUrl linkId rootId linkNodeType sid || show nodeType == "NodeFolderPublic"
} || show nodeType == "NodeFolderShared"
[ || show nodeType == "NodeUser"
then
H.span { className: "" } H.span { className: "" }
[
H.span { className: "" }
[
B.icon
{ className: ""
, name: GT.getIcon nodeType true
}
]
,
H.text props.text
]
else
H.a { className: ""
, href: "/#/" <> createNodeUrl linkId rootId linkNodeType sid
}
[ [
-- B.icon { name: "folder-open-o" } H.span { className: "" }
B.icon [
{ className: "" -- B.icon { name: "folder-open-o" }
, name: GT.getIcon nodeType true B.icon
} { className: ""
, name: GT.getIcon nodeType true
}
]
,
H.text props.text
] ]
,
H.text props.text
]
] ]
createNodeUrl :: Int -> Int -> NodeType -> SessionId -> String createNodeUrl :: Int -> Int -> NodeType -> SessionId -> String
......
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