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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
9607146f
Commit
9607146f
authored
Dec 20, 2024
by
Fabien Maniere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uniformize the search tab too
parent
6c92911e
Pipeline
#7168
passed with stages
in 18 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
Search.purs
...Gargantext/Components/Forest/Tree/Node/Action/Search.purs
+20
-14
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Search.purs
View file @
9607146f
...
@@ -9,6 +9,7 @@ import Gargantext.Components.Forest.Tree.Node.Action.Search.SearchBar (searchBar
...
@@ -9,6 +9,7 @@ import Gargantext.Components.Forest.Tree.Node.Action.Search.SearchBar (searchBar
import Gargantext.Components.Forest.Tree.Node.Action.Search.SearchField (defaultSearch)
import Gargantext.Components.Forest.Tree.Node.Action.Search.SearchField (defaultSearch)
import Gargantext.Components.Forest.Tree.Node.Action.Types (Action(..))
import Gargantext.Components.Forest.Tree.Node.Action.Types (Action(..))
import Gargantext.Components.Forest.Tree.Node.Action.Utils (loadLanguages)
import Gargantext.Components.Forest.Tree.Node.Action.Utils (loadLanguages)
import Gargantext.Components.Forest.Tree.Node.Tools as Tools
import Gargantext.Components.Lang (Lang)
import Gargantext.Components.Lang (Lang)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude
import Gargantext.Prelude
...
@@ -62,20 +63,25 @@ actionSearchWithLangsCpt = here.component "actionSearchWithLangs" cpt
...
@@ -62,20 +63,25 @@ actionSearchWithLangsCpt = here.component "actionSearchWithLangs" cpt
cpt { dispatch, id, langs, session } _ = do
cpt { dispatch, id, langs, session } _ = do
{ errors } <- Store.use
{ errors } <- Store.use
search <- T.useBox $ defaultSearch { node_id = id }
search <- T.useBox $ defaultSearch { node_id = id }
pure $ H.div { className: "card-body toolbox-tab-content px-5 py-4" }
pure $
[ H.p { className: "action-search mx-2" }
Tools.panelNoFooter
[ H.text $ "Search and create a private "
{ mError: Nothing
<> "corpus with the search query as corpus name."
, iconName: "search"
]
, textTitle: "Search (APIs) and create a corpus"
, searchBar
}
{ errors
-- H.div { className: "card-body toolbox-tab-content px-5 py-4" }
, langs
[ H.div { className: "action-search mx-2" }
, onSearch: searchOn dispatch
[ H.text $ "Please fill the search query and choose a database."
, search
]
, session
, searchBar
}
{ errors
[]
, langs
]
, onSearch: searchOn dispatch
, search
, session
}
[]
]
where
where
searchOn
searchOn
:: (Action -> Aff Unit)
:: (Action -> Aff Unit)
...
...
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