Commit 4fd21b98 authored by Sudhir Kumar's avatar Sudhir Kumar

folder icon removed from node

parent 0952715c
...@@ -107,6 +107,17 @@ li:hover a#rename { ...@@ -107,6 +107,17 @@ li:hover a#rename {
display:block; display:block;
} }
li a#rename-leaf {
display:none;
position:absolute;
text-decoration:none;
}
li:hover a#rename-leaf {
display:block;
}
.glyphitem {top: 0; .glyphitem {top: 0;
display: inline-block; display: inline-block;
......
...@@ -252,7 +252,6 @@ treeview = simpleSpec defaultPerformAction render ...@@ -252,7 +252,6 @@ treeview = simpleSpec defaultPerformAction render
renameTreeView :: (Action -> Effect Unit) -> FTree -> Int -> ReactElement renameTreeView :: (Action -> Effect Unit) -> FTree -> Int -> ReactElement
renameTreeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue, showRenameBox }) ary) nid = renameTreeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue, showRenameBox }) ary) nid =
div [className "col-md-12", _id "rename-tooltip",className "btn btn-secondary", _data {toggle : "tooltip", placement : "right"}, title "Settings on right"] div [className "col-md-12", _id "rename-tooltip",className "btn btn-secondary", _data {toggle : "tooltip", placement : "right"}, title "Settings on right"]
[ div [_id "arrow"] [] [ div [_id "arrow"] []
, div [className "panel panel-default", style {border:"1px solid rgba(0,0,0,0.2)", boxShadow : "0 2px 5px rgba(0,0,0,0.2)"}] , div [className "panel panel-default", style {border:"1px solid rgba(0,0,0,0.2)", boxShadow : "0 2px 5px rgba(0,0,0,0.2)"}]
...@@ -357,16 +356,9 @@ toHtml d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue, cr ...@@ -357,16 +356,9 @@ toHtml d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue, cr
ul [] ul []
[ [
li [] $ li [] $
[ [ a [className "glyphicon glyphicon-cog", _id "rename-leaf",onClick $ (\_-> d $ (ShowPopOver id))] []
a [onClick $ (\e-> d $ ToggleFolder id)] [i [fldr open] []] , a [ href (toUrl Front nodeType (Just id)), style {"margin-left":"22px"}]
, a [ href (toUrl Front nodeType (Just id)), style {position:"absolute",left:"44px"}] [ text (name <> " ") ]
( [ text (name <> " ")
]
)
, a [className "glyphicon glyphicon-cog", _id "rename",onClick $ (\_-> d $ (ShowPopOver id))]
[
]
, if (popOver == true) then (renameTreeView d s id) else (renameTreeViewDummy d s) , if (popOver == true) then (renameTreeView d s id) else (renameTreeViewDummy d s)
, if (createNode == true) then (createNodeView d s id) else (renameTreeViewDummy d s) , if (createNode == true) then (createNodeView d s id) else (renameTreeViewDummy d s)
] ]
...@@ -376,8 +368,8 @@ toHtml d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue,cre ...@@ -376,8 +368,8 @@ toHtml d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeValue,cre
ul [] ul []
[ li [] $ [ li [] $
( [ a [onClick $ (\e-> d $ ToggleFolder id)] [i [fldr open] []] ( [ a [onClick $ (\e-> d $ ToggleFolder id)] [i [fldr open] []]
, a [ href (toUrl Front nodeType (Just id)), style {position:"absolute",left:"44px"}] , a [ href (toUrl Front nodeType (Just id)), style {"margin-left":"22px"}]
[ text $ " " <> name <> " " ] [ text name ]
, a [className "glyphicon glyphicon-cog", _id "rename",onClick $ (\_-> d $ (ShowPopOver id))] , a [className "glyphicon glyphicon-cog", _id "rename",onClick $ (\_-> d $ (ShowPopOver id))]
[ [
] ]
......
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