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

remove links on shared or private nodes

parent 4a3312e5
Pipeline #5320 failed with stage
......@@ -260,21 +260,40 @@ breadcrumbItemCpt = here.component "breadcrumbItemCpt" cpt where
pure $
H.li { className: "breadcrumb-item" }
[
H.a { className: ""
, href: "/#/" <> createNodeUrl linkId rootId linkNodeType sid
}
[
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: ""
, href: "/#/" <> createNodeUrl linkId rootId linkNodeType sid
}
[
-- B.icon { name: "folder-open-o" }
B.icon
{ className: ""
, name: GT.getIcon nodeType true
}
H.span { className: "" }
[
-- B.icon { name: "folder-open-o" }
B.icon
{ className: ""
, name: GT.getIcon nodeType true
}
]
,
H.text props.text
]
,
H.text props.text
]
]
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