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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
ebeb9212
Commit
ebeb9212
authored
Jun 30, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/404-dev-popover-close-button-fix' into dev-merge
parents
b83573c3
40731885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
FolderView.purs
src/Gargantext/Components/FolderView.purs
+22
-16
No files found.
src/Gargantext/Components/FolderView.purs
View file @
ebeb9212
...
@@ -163,32 +163,38 @@ folderCpt = here.component "folderCpt" cpt where
...
@@ -163,32 +163,38 @@ folderCpt = here.component "folderCpt" cpt where
{ goToRoute } <- useLinkHandler
{ goToRoute } <- useLinkHandler
R.useEffect' $ do
R.useEffect' $ do
R.setRef setPopoverRef $ Just $ Popover.setOpen popoverRef
R.setRef setPopoverRef $ Just $ Popover.setOpen popoverRef
pure $
pure $
H.div {} [
H.div {}
H.span{style: {position: "absolute"}} [ Popover.popover {
[ H.span { style: { position: "absolute" } }
[ Popover.popover {
arrow: false
arrow: false
, open: false
, open: false
, onClose: \_ -> pure unit
, onClose: \_ -> pure unit
, onOpen: \_ -> pure unit
, onOpen: \_ -> pure unit
, ref: popoverRef
, ref: popoverRef
} [
}
popOverIcon
[ popOverIcon
, mNodePopupView (Record.merge props { dispatch }) (onPopoverClose popoverRef)
, mNodePopupView (Record.merge props { dispatch }) (onPopoverClose popoverRef)
]]
]
, H.button {on: {click: \_ -> goToRoute $ route linkId rootId linkNodeType sid }, className: "btn btn-primary fv btn" } [
]
H.i {className: icon style nodeType} []
, H.button { className: "btn btn-primary fv btn"
, H.br {}
, on: { click: \_ -> goToRoute $ route linkId rootId linkNodeType sid }
, H.text text]]
}
[ H.i {className: icon style nodeType} []
, H.br {}
, H.text text
]
]
onPopoverClose popoverRef _ = Popover.setOpen popoverRef false
onPopoverClose popoverRef _ = Popover.setOpen popoverRef false
popOverIcon = H.span { className: "fv action" }
[
popOverIcon = H.span { className: "fv action" }
H.a { className: "settings fa fa-cog"
[
H.a { className: "settings fa fa-cog"
, title : "Each node of the Tree can perform some actions.\n"
, title : "Each node of the Tree can perform some actions.\n"
<> "Click here to execute one of them." } []
<> "Click here to execute one of them." } []
]
]
mNodePopupView props opc = nodePopupView { boxes: props.boxes
mNodePopupView props opc = nodePopupView { boxes: props.boxes
, dispatch: props.dispatch
, dispatch: props.dispatch
...
...
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