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
88b26bf1
Commit
88b26bf1
authored
Jan 15, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bootstrap v4] fix for rename action
parent
d410c7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+4
-4
No files found.
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
88b26bf1
...
...
@@ -80,7 +80,7 @@ textInputBox p@{ boxName, boxAction, dispatch, isOpen: (true /\ setIsOpen) } = R
textInput renameNodeNameRef =
H.div {className: "col-8"}
[ inputWithEnter {
onEnter: submit
$ R.readRef
renameNodeNameRef
onEnter: submit renameNodeNameRef
, onValueChanged: R.setRef renameNodeNameRef
, autoFocus: false
, className: "form-control"
...
...
@@ -100,7 +100,7 @@ textInputBox p@{ boxName, boxAction, dispatch, isOpen: (true /\ setIsOpen) } = R
submitBtn renameNodeNameRef =
H.a {className: "col-2 " <> glyphicon "floppy-o"
, type: "button"
, on: { click: submit
$ R.readRef
renameNodeNameRef }
, on: { click: submit renameNodeNameRef }
, title: "Submit"
} []
cancelBtn =
...
...
@@ -109,9 +109,9 @@ textInputBox p@{ boxName, boxAction, dispatch, isOpen: (true /\ setIsOpen) } = R
, on: { click: \_ -> setIsOpen $ const false }
, title: "Cancel"
} []
submit
newName
_ = do
submit
renameNodeNameRef
_ = do
setIsOpen $ const false
launchAff_ $ dispatch ( boxAction
newName
)
launchAff_ $ dispatch ( boxAction
$ R.readRef renameNodeNameRef
)
textInputBox p@{ boxName, isOpen: (false /\ _) } = R.createElement el p []
where
el = R.hooksComponentWithModule thisModule (boxName <> "Box") cpt
...
...
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