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
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
2f4fde18
Commit
2f4fde18
authored
Jul 20, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tree] fix Search.Ajax.search return type
parent
9c11378e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Ajax.purs
src/Gargantext/Components/Search/Ajax.purs
+1
-1
SearchBar.purs
src/Gargantext/Pages/Layout/Specs/SearchBar.purs
+1
-1
No files found.
src/Gargantext/Components/Search/Ajax.purs
View file @
2f4fde18
...
...
@@ -14,7 +14,7 @@ import URI.Query as Q
searchUrl :: SearchQuery -> String
searchUrl q = urlPlease Back $ "new" <> Q.print (toQuery q)
search ::
forall a. DecodeJson a => SearchQuery -> Aff a
search ::
SearchQuery -> Aff Int
search q = do
let url = searchUrl q
liftEffect $ log2 "url:" url
...
...
src/Gargantext/Pages/Layout/Specs/SearchBar.purs
View file @
2f4fde18
...
...
@@ -54,7 +54,7 @@ onSearchChange (search /\ setSearch) =
launchAff $ do
liftEffect $ log2 "Searching db: " $ show q.database
liftEffect $ log2 "Searching term: " q.term
(r :: Unit)
<- Ajax.search (searchQuery q)
r
<- Ajax.search (searchQuery q)
liftEffect $ log2 "Return:" r
liftEffect $ modalShow "addCorpus"
searchQuery {database: Nothing, term} = over SearchQuery (_ {query=term}) defaultSearchQuery
...
...
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