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

remove links on shared or private nodes

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