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
dfb8f679
Commit
dfb8f679
authored
Jul 22, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX/ERGO] Tables Doc and Ngrams.
parent
9c11378e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+9
-6
NgramsTable.purs
src/Gargantext/Components/NgramsTable.purs
+1
-1
No files found.
src/Gargantext/Components/DocsTable.purs
View file @
dfb8f679
...
...
@@ -279,11 +279,11 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
, container: T.defaultContainer { title: "Documents" }
, colNames:
T.ColumnName <$>
[ ""
[ "Map"
, "Stop"
, "Date"
, "Title"
, "Source"
, "Delete"
]
, totalRecords
}
...
...
@@ -304,8 +304,13 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
[ a [ className $ gi isFav
, if toDel then style {textDecoration : "line-through"}
else style {textDecoration : "none"}
, onClick $ (\_-> dispatch $ MarkFavorites r._id (not isFav))] []
, onClick $ (\_-> dispatch $ MarkFavorites r._id (not isFav))
] []
]
, input [ _type "checkbox"
, checked toDel
, onClick $ (\_ -> dispatch $ ToggleDocumentToDelete r._id)
]
-- TODO show date: Year-Month-Day only
, if toDel then
div [ style {textDecoration : "line-through"}][text (show r.date)]
...
...
@@ -323,9 +328,7 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
div [style {textDecoration : "line-through"}] [ text r.source]
else
div [] [ text r.source]
, input [ _type "checkbox"
, checked toDel
, onClick $ (\_ -> dispatch $ ToggleDocumentToDelete r._id)]
]
, delete: true
}) <$> filter (not <<< isDeleted) res
...
...
src/Gargantext/Components/NgramsTable.purs
View file @
dfb8f679
...
...
@@ -249,7 +249,7 @@ ngramsTableSpec ntype = simpleSpec performAction render
, container: tableContainer {pageParams, loaderDispatch, dispatch, ngramsParent, ngramsChildren, ngramsTable}
, colNames:
T.ColumnName <$>
[ "
Graph
"
[ "
Map
"
, "Stop"
, "Terms"
, "Score (Occurrences)" -- see convOrderBy
...
...
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