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
d02b66cb
Commit
d02b66cb
authored
May 14, 2020
by
Przemyslaw Kaminski
Committed by
Alexandre Delanoë
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ngrams] move search up the tree
Now focus works.
parent
cf8f8cb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
NgramsTable.purs
src/Gargantext/Components/NgramsTable.purs
+2
-5
Reactix.purs
src/Gargantext/Utils/Reactix.purs
+5
-0
No files found.
src/Gargantext/Components/NgramsTable.purs
View file @
d02b66cb
...
@@ -291,10 +291,6 @@ searchInputCpt = R.hooksComponent "G.C.NT.searchInput" cpt
...
@@ -291,10 +291,6 @@ searchInputCpt = R.hooksComponent "G.C.NT.searchInput" cpt
, placeholder: "Search"
, placeholder: "Search"
, type: "value" }
, type: "value" }
toggleMaybe :: forall a. a -> Maybe a -> Maybe a
toggleMaybe _ (Just _) = Nothing
toggleMaybe b Nothing = Just b
-- NEXT
-- NEXT
data Action'
data Action'
= SetParentResetChildren' (Maybe NgramsTerm)
= SetParentResetChildren' (Maybe NgramsTerm)
...
@@ -353,7 +349,8 @@ loadedNgramsTableSpecCpt = R.hooksComponent "G.C.NT.loadedNgramsTable" cpt
...
@@ -353,7 +349,8 @@ loadedNgramsTableSpecCpt = R.hooksComponent "G.C.NT.loadedNgramsTable" cpt
pure $ R.fragment $
pure $ R.fragment $
autoUpdate <> resetSaveButtons <> [
autoUpdate <> resetSaveButtons <> [
T.table { colNames
search
, T.table { colNames
, container: tableContainer { dispatch: performAction
, container: tableContainer { dispatch: performAction
, ngramsChildren
, ngramsChildren
, ngramsParent
, ngramsParent
...
...
src/Gargantext/Utils/Reactix.purs
View file @
d02b66cb
...
@@ -300,3 +300,8 @@ foreign import _setCookie :: EffectFn1 String Unit
...
@@ -300,3 +300,8 @@ foreign import _setCookie :: EffectFn1 String Unit
setCookie :: String -> Effect Unit
setCookie :: String -> Effect Unit
setCookie = runEffectFn1 _setCookie
setCookie = runEffectFn1 _setCookie
focus :: Nullable R.Element -> Effect Unit
focus nEl = case toMaybe nEl of
Nothing -> pure unit
Just el -> el ... "focus" $ []
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