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
Show 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
...
@@ -279,11 +279,11 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
, container: T.defaultContainer { title: "Documents" }
, container: T.defaultContainer { title: "Documents" }
, colNames:
, colNames:
T.ColumnName <$>
T.ColumnName <$>
[ ""
[ "Map"
, "Stop"
, "Date"
, "Date"
, "Title"
, "Title"
, "Source"
, "Source"
, "Delete"
]
]
, totalRecords
, totalRecords
}
}
...
@@ -304,7 +304,12 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
...
@@ -304,7 +304,12 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
[ a [ className $ gi isFav
[ a [ className $ gi isFav
, if toDel then style {textDecoration : "line-through"}
, if toDel then style {textDecoration : "line-through"}
else style {textDecoration : "none"}
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
-- TODO show date: Year-Month-Day only
, if toDel then
, if toDel then
...
@@ -323,9 +328,7 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
...
@@ -323,9 +328,7 @@ renderPage loaderDispatch { totalRecords, dispatch, listId, corpusId
div [style {textDecoration : "line-through"}] [ text r.source]
div [style {textDecoration : "line-through"}] [ text r.source]
else
else
div [] [ text r.source]
div [] [ text r.source]
, input [ _type "checkbox"
, checked toDel
, onClick $ (\_ -> dispatch $ ToggleDocumentToDelete r._id)]
]
]
, delete: true
, delete: true
}) <$> filter (not <<< isDeleted) res
}) <$> filter (not <<< isDeleted) res
...
...
src/Gargantext/Components/NgramsTable.purs
View file @
dfb8f679
...
@@ -249,7 +249,7 @@ ngramsTableSpec ntype = simpleSpec performAction render
...
@@ -249,7 +249,7 @@ ngramsTableSpec ntype = simpleSpec performAction render
, container: tableContainer {pageParams, loaderDispatch, dispatch, ngramsParent, ngramsChildren, ngramsTable}
, container: tableContainer {pageParams, loaderDispatch, dispatch, ngramsParent, ngramsChildren, ngramsTable}
, colNames:
, colNames:
T.ColumnName <$>
T.ColumnName <$>
[ "
Graph
"
[ "
Map
"
, "Stop"
, "Stop"
, "Terms"
, "Terms"
, "Score (Occurrences)" -- see convOrderBy
, "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