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
30d727dd
Commit
30d727dd
authored
Jun 17, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Update : increasing the type of Board params
parent
72eab75f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Update.purs
...Gargantext/Components/Forest/Tree/Node/Action/Update.purs
+2
-2
Types.purs
...text/Components/Forest/Tree/Node/Action/Update/Types.purs
+7
-3
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Update.purs
View file @
30d727dd
...
...
@@ -67,9 +67,9 @@ update Texts dispatch = do
(submitButton (UpdateNode $ UpdateNodeParamsTexts {method}) dispatch)
update Dashboard dispatch = do
meth @( method /\ setMethod ) <- R.useState' All
Charts
meth @( method /\ setMethod ) <- R.useState' All
pure $ panel [ -- H.text "Update with"
formChoiceSafe [All
Charts] AllCharts
setMethod
formChoiceSafe [All
, Sources, Authors, Institutes, Ngrams] All
setMethod
]
(submitButton (UpdateNode $ UpdateNodeParamsBoard {method}) dispatch)
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Update/Types.purs
View file @
30d727dd
...
...
@@ -94,7 +94,7 @@ instance encodeJsonGranularity :: Argonaut.EncodeJson Granularity where
----------------------------------------------------------------------
data Charts =
AllCharts
data Charts =
Sources | Authors | Institutes | Ngrams | All
derive instance genericChart :: Generic Charts _
...
...
@@ -104,8 +104,12 @@ instance showChart :: Show Charts where
show = genericShow
instance readChart :: Read Charts where
read "AllCharts" = Just AllCharts
read _ = Nothing
read "Sources " = Just Sources
read "Authors" = Just Authors
read "Institutes" = Just Institutes
read "Ngrams" = Just Ngrams
read "AllCharts" = Just All
read _ = Nothing
instance decodeJsonChart :: Argonaut.DecodeJson Charts where
decodeJson = genericSumDecodeJson
...
...
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